Answered step by step
Verified Expert Solution
Link Copied!

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).

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

What is the output of the code? intx-5 if (x

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago