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.
The Vending Machine Company has read/heard your questions and has the
following answers:
- Menu should display the items to be purchased. You can design
the menu any way you'd like.
- Great place for void function
- The menu must be displayed repeatedly until the vending machine
repair person hits the "magic" exit button
- The vending machine repeats for multiple users. When the exit option is
selected, show:
- The number of each denomination on hand
- The amount of each item that remains in the machine
- The profit made
- User Input
- The user must be able to enter their selection either before or after the amount
- Minimally, your machine must accept quarters, dimes, and nickels
- You must permit multiple coins/bills to be entered
- Don't accept any wooden nickels... In other words, only accept valid coins
( e.g., there is no coin for 15 cents, the user would have to enter a dime and a nickel)
- You cannot keep any over payment, you must give the change back
- You must give change according to what is on hand
- If the user doesn't have enough money or there isn't enough change,
you must return the coins they entered
- The internal cash register
- Must maintain the total of each coin
- Must calculate the profit (total sales)
- Cannot create 2 dimes and a nickel from a quarter
- Start up amounts:
One roll of quarters ($10)
One roll of dimes ($5)
One roll of nickels ($2)
5 of each item to be sold
- Specific directions for running your program cannot be given, but
for the final project you must:
- You must test your project
- Hand in all of the code
- Hand in a sample test run
- Put the code in the group D2L drop box for the project