Question: PART 2 (Lab) (5 marks each) a. Write a program that gives the user a choice of 5 beverages (Coke, Water, Sprite, Juice, and Coffee).

 PART 2 (Lab) (5 marks each) a. Write a program that

PART 2 (Lab) (5 marks each) a. Write a program that gives the user a choice of 5 beverages (Coke, Water, Sprite, Juice, and Coffee). Allow the user to choose a beverage by entering a number 1-5. The input file contains one integer number. The output should be the cost of the beverage they chose. CODE 1 2 3 4 5 CHOICE Coke Water Sprite Juice Coffee PRICE 3 AED 1 AED 2 AED 4 AED 5 AED

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!