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!
IDE: Integrated drive electronics
Sata:Serial advance technology attachment
Answer:
[24, 35, 9, 56 Approach #3: Swap the first and last element is using tuple variable.
Answer:
spanning-tree portfast bpduguard
Explanation:
spanning- tree protocol (STP) is a layer 2 protocol in the OSI model. It is automatically configured in a switch to prevent continual looping of BPDUs, to avoid traffic congestion. The fastport bpduguard is only applicable in non-trunking access in a switch. It is more secure to configure the fastport mode in switch port connected directly to a node, because there are still bpdus transfer in a switch to switch connection.
BPDUs Guard ensures that inferior bpdus are blocked, allowing STP to shut an access port in this regard.