Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program Option 1: Write a program that performs a survey tally on beverages. The program should prompt for the next person until a sentinel

image text in transcribed C++ Program

Option 1: Write a program that performs a survey tally on beverages. The program should prompt for the next person until a sentinel value of - is entered to terminate the program. Each person participating in the survey should choose their favonte beverage from the following list: 1. Coffee2. Tea 3. Coke4. Orange Juice Sample Rn Please input the favorite beverage of person #1: Goose 1, 2, 3, or 4 from the above "enu or -1 to exit the progran Please input the favorite beverage of person #2: Goose 1, 2, 3, or 4 from the above-enu or 1 to exit the progran Please i put the favorite beverage of person #3: Koose I. 2, 3, or 4 from the above monu or -1 to exit the progra Please input the favorite beverage of person #4: Goose 1, 2, 3, or 4 from the above menu or -1 to exit the program Please input the favorite beverage of person #5: hose 1, 2, 3, or 4 from the above monu or 1 to exit the progra Please put the favorite beverage of person #6: Koose I. 2, 3, or 4 from the above mnu or 1 to exit the progra -1 The total nu ber of people surveyed is 5. The results are as folow: Beverage Nunber of Votos Coffee Tea Coke Orange Juioe

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago