Write a program that performs a survey tally on beverages. The program should prompt for the next person until a sentinel value of -1 is entered to terminate the program. Each person participating in...


Write a c++ program using looping


Write a program that performs a survey tally on beverages. The program should prompt for<br>the next person until a sentinel value of -1 is entered to terminate the program. Each person<br>participating in the survey should choose their favorite beverage from the following list:<br>1. Coffee 2. Green Tea<br>3. Soda<br>4. Juice<br>Sample Run:<br>************R*****NARR<br>**************************<br>***************************<br>*******************RN<br>Please input the favorite beverage of person #1:<br>Choose 1, 2, 3, or 4 from the above menu<br>or -1 to exit the program<br>****************************************************<br>***********AN*************************RARRNRR* Please<br>input the favorite beverage of person #2:<br>Choose 1, 2, 3, or 4 from the above menu<br>or -1 to exit the program<br>***************************************************<br>***************RRARN ***************************** Please<br>input the favorite beverage of person #3:<br>Choose 1, 2, 3, or 4 from the above menu<br>or -1 to exit the program<br>VANCITY<br>**********************************************<br>***************************************************<br>Please input the favorite beverage of person #4:<br>Choose 1, 2, 3, or 4 from the above menu or<br>-1 to exit the program<br>1<br>***************************************************<br>*****************ARARNAR *********************** Please<br>input the favorite beverage of person #5:<br>HINDANAD<br>

Extracted text: Write a program that performs a survey tally on beverages. The program should prompt for the next person until a sentinel value of -1 is entered to terminate the program. Each person participating in the survey should choose their favorite beverage from the following list: 1. Coffee 2. Green Tea 3. Soda 4. Juice Sample Run: ************R*****NARR ************************** *************************** *******************RN Please input the favorite beverage of person #1: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program **************************************************** ***********AN*************************RARRNRR* Please input the favorite beverage of person #2: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program *************************************************** ***************RRARN ***************************** Please input the favorite beverage of person #3: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program VANCITY ********************************************** *************************************************** Please input the favorite beverage of person #4: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program 1 *************************************************** *****************ARARNAR *********************** Please input the favorite beverage of person #5: HINDANAD
Choose 1, 2, 3, or 4 from the above menu<br>or -1 to exit the program<br>1<br>*****<br>**大<br>Please<br>input the favorite beverage of person #6:<br>Choose 1, 2, 3, or 4 from the above menu<br>or -1 to exit the program<br>-1<br>The total number of people surveyed is 5.<br>The results are as follows:<br>Beverage<br>Number of Votes<br>e**<br>Coffee<br>Green Tea<br>Soda<br>Juice<br>I ||<br>II||<br>IL||<br>3o11<br>I|||<br>

Extracted text: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program 1 ***** **大 Please input the favorite beverage of person #6: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program -1 The total number of people surveyed is 5. The results are as follows: Beverage Number of Votes e** Coffee Green Tea Soda Juice I || II|| IL|| 3o11 I|||
Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here