Write a Java program that will generate a receipt for an online hockey store. The store sells four items to coaches: pucks (S.75 each), whistles ($6.99 each), pylons ($1.79 each), and clipboards...


Write a Java program that will generate a receipt for an online hockey store. The store sells four items to coaches: pucks (S.75 each), whistles ($6.99 each), pylons ($1.79 each), and<br>clipboards ($3.99 each). The program will prompt the user for the quantity they are purchasing of each item. It will display the total for each item, the overall subtotal, the HST of<br>13% and finally the grand total. You may use either float or double as the type for the prices and totals. You will use int for the quantities of each item. Note that the printf format<br>code for output of float or double values is f.<br>Name your source file Store.java.<br>The output will be neatly displayed like the following sample:<br>Item<br>Qty<br>Unit Price<br>Total Price<br>clipboards<br>whistles<br>pylons<br>pucks<br>$xxxxxx.xx<br>$xxxxxx.xx<br>$xxxxxx.xx<br>$xxxxxx.xx<br>х<br>3.99<br>XX<br>6.99<br>1.79<br>.75<br>===== ==---<br>Subtotal<br>$xxxxxx.xx<br>$xxxxxx.xx<br>13% HST<br>Grand Total<br>Sxxxxxx.xx<br>Your program must be neatly formatted (i.e. observe the indentation convention) and should include some reasonable program comments identifying the question, your name and id<br>number, and what the program does.<br>

Extracted text: Write a Java program that will generate a receipt for an online hockey store. The store sells four items to coaches: pucks (S.75 each), whistles ($6.99 each), pylons ($1.79 each), and clipboards ($3.99 each). The program will prompt the user for the quantity they are purchasing of each item. It will display the total for each item, the overall subtotal, the HST of 13% and finally the grand total. You may use either float or double as the type for the prices and totals. You will use int for the quantities of each item. Note that the printf format code for output of float or double values is f. Name your source file Store.java. The output will be neatly displayed like the following sample: Item Qty Unit Price Total Price clipboards whistles pylons pucks $xxxxxx.xx $xxxxxx.xx $xxxxxx.xx $xxxxxx.xx х 3.99 XX 6.99 1.79 .75 ===== ==--- Subtotal $xxxxxx.xx $xxxxxx.xx 13% HST Grand Total Sxxxxxx.xx Your program must be neatly formatted (i.e. observe the indentation convention) and should include some reasonable program comments identifying the question, your name and id number, and what the program does.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here