Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started