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.

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
Get step-by-step solutions from verified subject matter experts
