First of all, the print statements should be indented, and the last if statement should be x % 2 == 1 inside of the parentheses.
Other than those few mistakes, the output of the program when the user types in 9 is:
A
C
and whatever the last thing is in the final if statement.
I hope this helps!
Answer:
Method and a function are the same,whit the different terms. A method is a procedure or function in object - oriented programming. A function is a group of reusable code which can be called anywhere in your program. This eliminates the need for writing the some code again and again.
Business owners and managers may first balk at the idea of mobile officer workers because there may appear to be a lack of ___ when employees are not sitting at a desk in the office
Lack of control, supervision (I.e. micro-management lol).
Answer:
while (Num>=0) {
System.out.println("enter a another number");
Num = in.nextInt();
}
Explanation:
The complete java code prompting a user to enter a number until a negative number is entered is given below:
import java.util.Scanner;
public class num6 {
public static void main (String [] args) {
Scanner in = new Scanner(System.in);
System.out.println("enter a number");
int Num = in.nextInt();
while (Num>=0) {
System.out.println("enter a another number");
Num = in.nextInt();
}
System.out.println("Done.");
return;
}
}
Answer:
a. True
Explanation:
PC's sometimes runs slowly and on the long run cost money. Optimizing performance involves running software utilities that could restore speed and efficiency.
Scanning for malware/ virus , cleaning system registry, uninstalling unused program, deleting unnecessary files, disk defragment , updating of windows software and setting up the browser are ways to optimize your pc's performance.