The instruction out.printf(\"Total: %9.2f\ \", total); will: A. input to an outp
ID: 3536117 • Letter: T
Question
The instruction out.printf("Total: %9.2f ", total); will:
A. input to an output file the word "Total" followed by a 10 digit numeric field with 2 decimal points and go to the next line.
B. output to an output file with a nine digit numeric field with 2 decimal points and go to the next line.
C. output to an output file the word "Total" followed by a nine digit numeric field with 2 decimal points and go to the next line.
D. output to an output file the word "Total" followed by a nine digit numeric field with 2 decimal points.
Explanation / Answer
C. output to an output file the word "Total" followed by a nine digit numeric field with 2 decimal points and go to the next line.
because in "%9.2f" 9 represents total no. of digits to be printed and 2 represents no. of digits after decimal point and ..." " makes it go to the next line.....
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.