Answer:
The code to this question can be given as:
Code:
int callsReceived,operatorsOnCall; //define variable as integer
Scanner ob= new Scanner(System.in);
//create object of scanner class for user input
System.out.println("Insert the value of callsReceived"); //print message.
callsReceived = ob.nextInt(); //input value.
System.out.println("Insert the value of operatorsOnCall"); //print message.
operatorsOnCall = ob.nextInt(); //input value.
if (operatorsOnCall == 0) //check number
{
System.out.println("INVALID"); //print message.
}
else
{
System.out.println(callsReceived/operatorsOnCall); //print value.
}
Explanation:
In the above code firstly we define 2 integer variable that name is already given in the question. Then we create the scanner class object for taking user input. Then we print the message for input first and second value from the user. then we use conditional statement. If the second variable that is operatorsOnCall is equal to 0. So It print INVALID. else it divide the value and print it.
Answer:
def funct1():
h=int(input("Enter height of the box"))
w=int(input("Enter the width of the box"))
L=int(input("Enter the length of the box"))
surface_area=2*(h*w + h*L + w*L)
return surface_area
a=funct1()
print(a)
Explanation:
Please check the answer section.
Binary values are used to denote the 'ON' and 'OFF' state of a computer. The 'ON' state is denoted by the binary value '1'
- The 'ON' state of a computer represents the mode when the computer system is running and can be used to perform computing operations.
- The binary values '0' and '1' are used to designate the ON and OFF state.
- When the computer is ON, it is designated by the binary value 1 ; while the OFF state is designated by the binary value 0.
Therefore, the number which signifies the ON state of a computer is 1.
Learn more :brainly.com/question/4722254
Answer:
right click and press control c