Computers and Technology, 12.11.2019 19:31 Sidm29
Write the definition of a method printattitude, which has an int parameter and returns nothing. the method prints a message to standard output depending on the value of its parameter. if the parameter equals 1, the method prints disagree if the parameter equals 2, the method prints no opinion if the parameter equals 3, the method prints agree in the case of other values, the method does nothing. each message is printed on a line by itself.
here is what i have so far that is being marked incorrect:
public static void printattitude (int x)
{
if (x==1){
system. out. println("disagree");
}
if (x==2){
system. out. println("no opinion");
} if (x==3){
system. out. println("agree");
}
}
here is the error message that i get:
- nothing was printed to stdout
- stdout is not correct
test case table
test case x stdout feedback
#1 1 disagree
#2 2 no opinion
#3 30 - stdout is not correct
- nothing was printed to stdout
#4 9 - stdout is not correct
- nothing was printed to stdout
Answers: 3
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
Write the definition of a method printattitude, which has an int parameter and returns nothing. the...
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
English, 25.02.2021 23:10
Social Studies, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
English, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
Mathematics, 25.02.2021 23:10
English, 25.02.2021 23:10