The statement System.out.printf("%3.1f", 1234.56) outputs ___________.
a. 123.4
b. 123.5
c. 1234.5
d. 1234.56
e. 1234.6
e. 1234.6
.1 specifies one digit after the decimal point. The rest is rounded up. So 1234.56 is displayed 1234.6.
Computer Science & Information Technology
You might also like to view...
To view a document with changes displayed, you click the Track Changes button in the:
A) Preview Changes group on the Tracking tab. B) Review group on the Tracking tab. C) Tracking group on the Review tab. D) Preview Changes group on the Review tab.
Computer Science & Information Technology
Which of the following statements is TRUE about passwords?
A) They are case sensitive. B) They must consist of letters, numbers, and symbols. C) They must include letters and numbers. D) You type the password into the General Options tab.
Computer Science & Information Technology