So I have this project I have to submit soon, for a program made to these specs:
Dev C Vending Machine Programming
Write a program that presents the user w/ a choice of your 5 favorite beverages (Coke, Water, Sprite., Whatever). Then allow the user to choose a beverage by entering a number 1-5. Output which beverage they chose. ★ If you program uses if statements instead of a switch statement, modify it to use a switch statement. A vending machine has a restricted input. It shouldn't take a user's money unless the user enters a valid address. Most vending machines I've used take a letter that designates the row, followed by a number that designates the column i.e. Upper left hand corner would typically be A0. The item to the right of that might be A1 or A2 etc.
2. On pressing a key a menu is displayed offering four choices of drinks and an option to cancel.
3. When a choice has been made the display indicates the drink chosen along with its price and an option to continue. Each of the drinks has a different price.
4. If the option chosen is not to continue the user is returned to the welcome screen. Conversely, if the user elects to continue then a question requesting the quantity required is displayed along with an indication that the maximum that can be ordered is five.
6. Subsequent messages will request the amount of money to be inserted, a list of the coins that can be inserted i.e. 5p, 10p, 20p, 50p and 100p, a total of the amount inserted as the coins are inserted and a reducing amount outstanding as the money is inserted. The money is inserted by typing its value on the keyboard. When the value of a coin entered is not allowed the user is simply returned to the display requesting payment.
7. When the value of the drinks ordered has been reached or exceeded a message indicating that the drinks are being dispensed is shown. In detail this message will name the drink and quantity ordered, indicate that the drink is being dispensed along with the quantity ordered e.g. if three drinks have been ordered then the message will show a count up from three as each of the drinks is dispensed. A suitable time will elapse as each drink is dispensed.
8. On completion of the dispensing of the drinks a 'Thank you' message will be shown.
9. When the value of money inserted exceeded that required then a message indicating the difference between the two is to be collected will also be shown on the ‘Thank you’ message.
I admit my code is messy, but I'm a novice at C so I'd be grateful for any help.
We've to build one mini project on Vending Machine..
Our Guide have given us following topics to be covered in mini project -
- Normal Vending machine program working on Deposited balance - Can do it
- Login and Password for 5 members to store their individual spares separately
- Permanent storage of history of purchase in a file
- Use of some graphics and mouse
I'm beginner.. I can program everything except Login module, file saving..
Can anyone help me out?
- 4 Contributors
- forum8 Replies
- 513 Views
- 5 Months Discussion Span
- commentLatest PostLatest Postby ika_rees
Dev C Vending Machine Programram
Recommended Answers
Yes we can. Did you read the Member Rules or any of the sticky posts above?
Jump to PostWelcome. Give this a read:'>http://www.daniweb.com/forums/announcement8-2.html . At least make some attempt at what you have set out to do. I'm confident that you have used files and strings (which is really all the login …
Jump to PostAll 8 Replies
Dev C Vending Machine Program Free
Yes we can. Did you read the Member Rules or any of the sticky posts above?