I have to type 20 characters here so...
Answer:
import java.util.Scanner;
public class CocaColaVendingTest {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter the total number of calls received");
int callsReceived = input.nextInt();
System.out.println("Enter the total number of operators");
int operatorsOnCall = input.nextInt();
int callsPerOperator = callsReceived/operatorsOnCall;
System.out.println("The number of calls per operator is "+callsPerOperator);
}
}
Explanation:
A complete Java code is given above. The user is prompted to enter the values for the number of calls received and the number of operators. These are stored in the respective variables.
Using an Integer division, the number of calls per operator is obtained by: callsPerOperator = callsReceived/operatorsOnCall;
Answer: A. Car
Explanation:
Here the base class member is being protected which is Vehicle. The base class is the Vehicle class and the derived class is Car class.
As the derived class is created or derived from another existing class. So here the class Car has been created through the process of inheritance from the base class which is vehicle. All the methods and variables in Vehicle class are in protected so the only the derived class is able to get access to those variables and methods.
class Car : protected Vehicle
The class Vehicle has been defined earlier and the class Car is created.
The left side is for derived and right side is for base class.
Alan should click on the Clip Art section and then run a search by entering the keyword in the search menu.
A. Clip Art
<u>Explanation:</u>
Alan wants to find an image of a car that he can use in his presentation. It is always a good practice to include pictures and other media like videos, GIFs, and sound effects to make a presentation more engaging and interesting.
In order to include an image, Alan should click on the Clip Art section and then run a search by entering the keyword in the search menu. The clip art allows the user access to the saved images and to the internet for searching the required image.
Advanced Research Projects Agency Network,
wide area network
File Transfer Protocol
?
Hypertext Markup Language
Internet service provider
world wide web