Question: write a c++ for the following, Task 3 (week 3) - Vending machine price checker Write a program that displays the cost of different options

write a c++ for the following,

Task 3 (week 3) - Vending machine price checker Write a program that displays the cost of different options at a vending machine. Your program must,

read in a selection char from a file called input.txt, use case statements to select the price linked to the input char, write the price corresponding to the char to a file called output.txt.

write a c++ for the following, Task 3 (week 3) - Vending

If the char is not present in the file write -1 to the file. You should account for all items as listed in Table 4 as well as invalid selections (those not listed

Table 4: Vending machine options. Product Selection char Cheese naks Doritos Coke Chappie Tex Bar-onef Cost R5.50 R7.50 R12.00 R2.00 R8.00 R7.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!