Tamamlanmış

A menu driven code needed

Needed within 1 hour

Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz), medium (12oz), and

large (15oz). The cost of one small cup is $1.75, one medium cup is $1.90, and one large cup is $2.00.

Write a menu-driven program that will make the coffee shop operational. Your program should allow the

user to do the following:

a. Buy coffee in any size and in any number of cups.

b. At any time show the total number of cups of each size sold.

c. At any time show the total amount of coffee sold.

d. At any time show the total money made.

Your program should consist of at least the following functions: a function to show the user how to use

the program, a function to sell coffee, a function to show the number of cups of each size sold, a

function to show the total amount of coffee sold, and a function to show the total money made. Your

program should not use any global variables and special values such as coffee cup sizes and cost of a

coffee cup must be declared as named constants.

Sample Output

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

1

1: Enter 1 to buy coffee in a small cup size (9 oz)

2: Enter 2 to buy coffee in a medium cup size (12 oz)

3: Enter 3 to buy coffee in a large cup size (15 oz)

9: Enter 9 to exit.

3

Enter the number of cups: 2

1: Enter 1 to buy coffee in a small cup size (9 oz)

2: Enter 2 to buy coffee in a medium cup size (12 oz)

3: Enter 3 to buy coffee in a large cup size (15 oz)

9: Enter 9 to exit.

9

Please pay $4.00

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

2

Total money made: $4.00

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

3

Total amount of coffee sold: 30oz

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

4

Small cup count: 0

Medium cup count: 0

Large cup count: 2

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

5

Small cup count: 0

Medium cup count: 0

Large cup count: 2

Total amount of coffee sold: 30oz

Total money made: $4.00

1: Enter 1 to order coffee.

2: Enter 2 to check the total money made up to this time.

3: Enter 3 to check the total amount of coffee sold up to this time.

4: Enter 4 to check the number of cups of coffee of each size sold.

5: Enter 5 to print the data.

9: Enter 9 to exit the program.

9

Press any key to continue . . .

Beceriler: C++ Programlama

Daha fazlasını gör: needed needed social networking website, joomla top menu css code, menu creation code, menu driven program in c using array, menu driven program in c using if-else, menu driven program in c using structures, what is menu driven program in c, menu driven program in python, menu program in c using switch case, menu driven program in c for calculator, menu driven program in c++, captcha code worker needed, extjs menu example code, top menu css code, video code developer needed, code writer needed, php wordpress programmer code developer needed, android menu driven app code mysql, delphi xe code snippets needed (winapi stuff), delphi xe code snippets needed winapi stuff

İşveren Hakkında:
( 0 değerlendirme ) Detroit, United States

Proje NO: #18989393

Seçilen:

vedant2910

Hey, I have a major in Computer Science. I have done various projects in C++ as you can see in my reviews. I would really like to do this task and I assure you that I will complete it in 1 hour. Looking forward t Daha Fazla

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(5 Değerlendirme)
3.1

Bu iş için 6 freelancer ortalamada $31 teklif veriyor

dungforever

Hi I have read your requirement carefully. It's a great chance to introduce my skill. I am a talented software developer with over 11+ years experience. Algorithm, AI is my major. I have full experience in menu pr Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(9 Değerlendirme)
4.1
Devesh23

I CAN DO THAT IN NEXT 4 HOURS. I have expertise in C++ and as I can tell you that the only time which needed for this work is in typing all the details.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)
2.4
tomalhossain1615

Ready to work right now! Hello sir, I am a computer science student and c++ programmer with good knowledge in data structure and data structure. I can complete your task within an [login to view URL] for details. Thank you

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
1.8
ZhangHuang

Dear sir! I'm an ambitious C/C++ developer. I am developer with over 7 years of experience. I'm full of energy and knowledge to be Your perfect developer . So take a chance and Hire me, I won't disappoint You! Best Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
malikusman1998

i am an expert C++ programmer i can write this program in less than one hour with all functionallties and error handling as well

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0