Invoice
February 17, 2015
Today’s exercise comes from a text for a first-level programming course.
Praxis Grocery Store
17 Feb 2015
1 2% Milk 2 3.30 6.60
2 93% Ground Beef 1 5.98 5.98
3 Clam Chowder 2 1.78 3.56
4 Honey 1 4.42 4.42
5 6 Eggs 1 1.18 1.18
Subtotal 21.74
Tax 5.25% 1.14
Total 22.88
Your task is to write a program that prompts the user to enter item descriptions, quantities and amounts and produces an invoice as shown above. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
One Response to “Invoice”