Question: 3. Write a java program that prints the following table using the System.out.printf() method. (4 marks) ItemUnit PriceQuantityTotal Price Laptop 345.00 10 3450.00 Printer 113.00
3. Write a program that prints the following table using the System.out.printf(0) method. (4 marks) Item Unit Price Qutity Total Price Laptop345.00 Printer 450.00 226.00 10 113.00 Use the following string for the format for the 1 line: Use the following string for the format for the 2 and 3 lines: 1%-15s%15.2f%! 5d% 15.2f%n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
