Given the below program skeleton. Replace the four
public class CarInventoryReport{ public static void main(String[] args) { final String HEADING_FMT_STR =
; final String DATA _ FMT _ STR? =
; String item1 = "Mazda RX-8"; int qty1 = 10; double price1 = 27999.99; string item2 = "MINI Cooper"; int qty2 = 100; double price2 = 23000.25; System.out.printf(HEADING_FMT_STR, "Item", "Quantity", "Price", "Value"); System.out.printf(HEADING_FMT_STR, “----” , “--------” , “-----” , “-----”) ; System.out.printf(DATA_FMT_STR,); System.out.printf(DATA_FMT_STR, ); } // end main} // end class CarInventoryReport
Output
item Quantity Price Value Mazda RX-8 10 28,000 280,000 MINI Cooper 100 23,000 2,300,025
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.