Answer:
public void printAttitude(int n){
if(n == 1){
System.out.println("disagree");
}
else if(n == 2){
System.out.println("no option");
}
else if(n == 3){
System.out.println("agree");
}
else {
}
}
Explanation:
The above code has been written using Java syntax. The first line denotes the method header which contains the access modifier(public), followed by the return type(void), followed by the name of the method(printAttitude). The method name is followed by a pair of parentheses in which the parameter to the method is written - in this case - an int parameter, n.
Note: When a method does not return a value. It has a return type of void as shown on the first line of the code.
In the method body, a nested if...else statement is written to test for the value of the parameter. If the parameter value of n is 1, the string "disagree" is printed to the console. Else if the parameter value of n is 2, the string "no option" is printed to the console. if the parameter value of n is 3, the string "agree" is printed to the console. For other values of n, nothing is printed. This is shown in the body of the else statement.
Hope this helps!
Answer:
If Joe wants to eat an apple then he eats an apple.
Explanation:
The if statement checks if Joe "wants to eat an apple", if it turns out he does not then nothing will happen.
A diagram which indicates the sequence in which milk travels through a production plant to each stage of a cheese manufacturing process is: D. A process schedule
<h3>What is a
process schedule?</h3>
A process schedule can be defined as a type of diagram (schematic) which is designed and developed to illustrate the various processes and stages (steps) that are associated with manufacturing of a particular product.
In this context, a process schedule is a diagram which would most likely indicate the sequence in which milk travels through a production plant to each stage of a cheese manufacturing process.
Read more on cheese manufacturing here: brainly.com/question/21148228
#SPJ1
<span>An associate's degree requires two years of academic study and is the highest degree available at a community college</span>
Manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.