Answer:
"Causes text to be printed on the screen" is the right answer for the above question.
Explanation:
In a python programming language, the "print()" function is used to display the text or value of a variable (which is described as an argument of the "print()" function) on the screen. The syntax of the "print()" function is stated below--
print("value of text which needs to print on the screen");
Hence "Causes text to be printed on the screen" is the right answer because it means the same which described above while the other is not because--
- "causes your printer to print out a page of paper" states that the "print()" function print a page with the help of printer but it is a wrong statement for print() function.
- "saves data to a file on your disk" states that the print function is used to save the data on a disk but it is a wrong statement for print() function.
- "none of the above" states that above-defined none options are correct but one option is correct.
import java.util.*; //This is used to import the Scanner
class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
Scanner ValCents = new Scanner (System.in);
System.out.println("Enter Number:");
int user_input = ValCents.nextInt();
int result = user_input/100; // This one will solve for the one dollar bills.
int remain = user_input % 100; // This one will get the remainder of cents.
System.out.println(result + " One Dollar Bills");
System.out.println(remain + " Cents");
}
}
Remember that you need to get the amount of dollar bills separately from the number of cents. This is because the int variable will always return the whole value of the number. The modulo is used to get the variable of the cents as the whole number is already taken by the "result".
Answer:
computer
Explanation:
is an ICT device that help and makes things or work easy
Answer:
java: error
C: false
Explanation:
In Java the compiler understand that you are trying to compare an integer (15) with a boolean (10 > 5) this generate the next error:
error: bad operand types for binary operator
In C the compiler convert (15 > 10 > 5) in (15>10) > (10>5) which is equal to TRUE > TRUE, the compiler can also read it as 1 > 1 (since 1 is TRUE and 0 is FALSE). like 1>1 is false then C program return false.