Chapter 29: Problem 3
Write a statement for each of the following: a) Print 1234 right justified in a 10 -digit field. b) Print 123.456789 in exponential notation with a sign \((+\text { or }-)\) and 3 digits of precision. c) Print 100 in octal form preceded by 0 d) Given a Calendar object calendar, print a date formatted as month/day/year (each with two digits). e) Given a Calendar object calendar, print a time for the 24 -hour clock as hour:minute: second (each with two digits) using argument index and conversion suffix characters for formatting time. f) Print 3.333333 with a sign \((+\text { or }-)\) in a field of 20 characters with a precision of 3
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.