This document is designed to provide you with details needed
for this assignment. The software design cycle consists of:
- Analysis
- Design
- Code
- Debug
- Test
It is called a cycle as at any point you may have to go back to
a previous step. You have performed steps one and two above. At
this point, the customer is generally spoken to again to clarify
the issues found.
Your project manager has secured these details from the client:
- A menu should display the items available for purchase and the cost of each item.
The items must be displayed before each selection.
Don't expect the user to memorize the menu.
- The items are to be read in from a file
- You must maintain a count of the number of a particular item on hand
- When the manager
hits the "magic" exit button, a complete list of the number of each product sold
must be displayed. In addition, the number of each monetary unit left must be displayed AND output to
the file: "Report.txt"
- User Input
- Your store must accept twenty, ten, five and one dollar bills, quarters, dimes, nickels, and pennies
- You must permit multiple coins/bills to be entered individually. So, a user can't enter 35 cents - they would have to enter a quarter and a dime.
- Don't accept any wooden nickels...
- You cannot keep any extra money
- You must give change according to what is on hand - if you are out of one
dollar bills, check if you have enough quarters on hand
- If the user doesn't have enough money or there isn't enough change,
you must return the exact denominations that they entered
- The cash register
- Must maintain the total of each monetary unit
- Must calculate the profit (total sales)
- Cannot create 2 dimes and a nickel from a quarter
- Start up amounts:
Ten ten dollar bills
Ten five dollar bills
Ten one dollar bills
One roll of quarters ($10)
One roll of dimes ($5)
One roll of nickels ($2)
One roll of pennies ($0.50)
- Specific directions for running your program cannot be given, but
for the final project you must:
- You must test your project
- Zip the code, and header files and place them in the group project drop box