Show Bid Request
Soft Drink Machine Program
Bid Request Id: 12723
|
|
|
Posted by: |
Loli10 (10 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Very Good - 8.33%
|
Posted: |
Apr 5, 2002 11:44:04 AM EDT
|
Bidding Closes: |
Apr 10, 2002 11:54:14 AM EDT
|
Viewed (by coders): |
121 times
|
Deadline: |
4/11/2002
TIME EXPIRED
|
|
|
|
Description:
This is a MS Visual C++ 6.0 program. Win 32 apps. Write a program that simulates a soft drink machine. The program should use a structure that stores the following information:
Drink name Drink cost Number of drinks in machine
Create a function called DispInfo that takes in the struct array and displays its contents on the screen. Since the function prototype will refer to the struct, make sure that the function prototype is placed in the program after the struct definition and before the main function. The program should create an array of 5 structures. The elements should be initialized with the following data:
Drink name Cost: Number in Machine
Cola .75 20 Root Beer .75 20 Lemon-Lime .75 20 Grape Soda .80 20 Cream Soda .80 20
Each time the program runs, it should enter a loop that performs the following steps: A list of drinks is displayed on the screen. The user should be allowed to either quit the program or pick a drink. If the user selects a drink, he/she will next enter the amount of money that is to be inserted into the drink machine. The program should display the amount of change that would be returned, and subtract 1 from the number of drink left in the machine. If the user selects a drink that has sold out, a message should be displayed. The loop then repeats. When the user chooses to quit the program, it should display the total amount of money the machine earned. Input validation: When the user enters an amount of money, do not accept negative values or values greater than $1.00. This program must be well commented and easily understood.
I request that the .cpp file be emailed to me so I can compile the program to test. When I accept the bid, and I have your email address, I will send you a copy of an old program (.cpp file) to show you the format of how I need the program to look and the way the comments are placed.
Deliverables: Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
Complete copyrights to all work purchased.
Platform:
MS Visual C++ 6.0 win 32 console app.
Must be 100% finished and received by buyer on:
Apr 11, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$8 (USD)
|
Apr 5, 2002 2:51:00 PM EDT
|
9.5
(Excellent)
|
|
|
I can have this done for you in less than an hour. |
|
|
|
|
|