Answered step by step
Verified Expert Solution
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
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 JuioeStep 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