Problem

Given the below program skeleton. Replace the four  items so that the program produces the...

Given the below program skeleton. Replace the four  items so that the program produces the below output. Try to mimic the output's format precisely, but it's OK if your column widths vary slightly from the shown column widths.

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

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT