Find Jobs
Hire Freelancers

Soft Drink Machine Program

$10-15 USD

V teku
Objavljeno pred približno 22 leti

$10-15 USD

Plačilo ob dostavi
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.
ID projekta: 2845169

Več o projektu

17 ponudb
Projekt na daljavo
Aktivno pred 22 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
See private message.
$5 USD v 14 dneh
4,8 (2 ocen)
0,0
0,0
17 freelancerjev je oddalo ponudbo s povprečno vrednostjo $10 USD za to delo
Avatar uporabnika
See private message.
$8,50 USD v 14 dneh
4,9 (36 ocen)
5,2
5,2
Avatar uporabnika
See private message.
$8,50 USD v 14 dneh
5,0 (47 ocen)
4,5
4,5
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
4,6 (60 ocen)
4,5
4,5
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
5,0 (12 ocen)
4,3
4,3
Avatar uporabnika
See private message.
$10,20 USD v 14 dneh
5,0 (38 ocen)
4,1
4,1
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
4,7 (6 ocen)
3,4
3,4
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
5,0 (12 ocen)
3,2
3,2
Avatar uporabnika
See private message.
$6,80 USD v 14 dneh
4,8 (16 ocen)
3,1
3,1
Avatar uporabnika
See private message.
$10,20 USD v 14 dneh
5,0 (8 ocen)
2,9
2,9
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
3,5 (2 ocen)
2,2
2,2
Avatar uporabnika
See private message.
$11,05 USD v 14 dneh
5,0 (1 ocena)
1,9
1,9
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
5,0 (3 ocen)
1,1
1,1
Avatar uporabnika
See private message.
$8,50 USD v 14 dneh
5,0 (2 ocen)
0,2
0,2
Avatar uporabnika
See private message.
$12,75 USD v 14 dneh
5,0 (1 ocena)
0,0
0,0
Avatar uporabnika
See private message.
$6,80 USD v 14 dneh
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
See private message.
$4,25 USD v 14 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava UNITED STATES
United States
4,9
22
Član(ica) od mar. 7, 2002

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.