Soft Drink Vending Machine Simulation - IT Assignment Help

Download Solution Order New Solution
Assignment Task

 


Problem Statement
Write a program to simulate a soft drink vending machine. The program will work with drink
names, their prices, and the current number available in the machine.
First, you will read the initial machine state information from a data file named machine.txt.
This file will contain the drink names, the price per can for each drink, and the number of cans
available in the machine initially for each drink. If the initial data was given by that in this
table
Drink Name Price Per Can Number in Machine Initially
Cola 50 5
Ruby Red Blast 80 10
Lemon Lime 75 8
Grape Soda 85 20
Citrus Cooler 85 0
Sweet Tea 100 11
the text file would contain:
Cola<eoln>
50 5<eoln>
Ruby Red Blast<eoln>
80 10<eoln>
Lemon Lime<eoln>
75 8<eoln>
Grape Soda<eoln>
85 20<eoln>
Citrus Cooler<eoln>
85 0<eoln>
Sweet Tea<eoln>
100 11<eoln>
<eof>
eoln means end of line.
eof means end of file


This IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    
Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.