Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter the number of bottles and cans:");
int numberOfbottles = in.nextInt();
int numberOfcans = in.nextInt();
System.out.printf("Bottles: %8d\n", numberOfbottles);
System.out.printf("Cans: %8d\n", numberOfcans);
}
}
Explanation:
Ask user to input the number of bottles and cans using Scanner class
Print the results so that the numbers to the right line up (Since we know that the numbers have at most 8 digits, we can use %8d in printf. Also, be aware that how printf statements are written so that the numbers line up)
The number system is what is use globally as are way of counting the total number of digits is 9 because you can make any number with characters 1-9
Answer:
B. client server
Explanation:
Someone hacked into an employees computer and erased all of their data. The employee had last performed a backup three weeks back. This means that there is a backup server in the company. In other words, the network architecture is of the form client-server where data from the employee computers is backed up to a centralized repository from where content could be restored. Hence option B represents the most likely choice.