"Vending Machine" | |
Assigned: Weds Apr 2, 2003 | Design due: Mon Apr 7, 2003 |
Grade: 80 points | Due: Mon Apr 14, 2003 |
This program reviews many of the concepts we covered in CSC 160, including:
|
The "Vending Machine" program is a
modification of the "Drink Machine Simulator" on page
582 of our text.
Your program should have 4 steps:
Example Session Here's a possible example session (user input in bold):
Implementation Your implementation must use classes in an object-oriented approach. As a hint, I used the following classes in my solution:
|
Your program will be graded on three areas: design, quality, and function. Their description and weighting in your grade is given below. 1. Program Design (25%) It is essential to design your program before pounding it out in front of Visual C++. The design for this program requires:
You should include all the class interface files in your main() and be able to compile, but not build (or link) because your class member functions are not yet written. 2. Program quality (25%) I'm working on a more comprehensive style guide, but here's what I will be looking for:
3. Program function (50%) If your program doesn't compile or link, your grade for this section will automatically be cut in half and then I'll start from there. Please leave a README file in your prog01 folder with notes you want me to read. I will use your vending machine, of course... and, of course, it should work. I will be sure to try some error cases as well:
Good luck. |
I filled my vending machine with the following items:
Slot | Item | Cost | Quantity |
A1 | Super ball | .35 | 4 |
A2 | Grape Nehi | .25 | 2 |
B1 | Fake tattoo | .50 | 2 |
B2 | Tiny American flags | 1.00 | 5 |
You can fill your vending machine with any items you like. Please keep the quantities on some items low, so that I can test your program for 0 items in a slot.