[Soft Drinks Survey] 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. Tea

3. Coke

4. Orange Juice

Sample Run:

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit

Please input the favorite beverage of person #1: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program

4

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit

Please input the favorite beverage of person #2: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program

1

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit

Please input the favorite beverage of person #3: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program

3

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit

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

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit

Please input the favorite beverage of person #5: Choose 1, 2, 3, or 4 from the above menu or -1 to exit the program

1

Soft Drink Survey

1. Coffee

2. Tea

3. Coke

4. Orange Juice

5. Please enter -1 to exit 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

********************************

Coffee 3

Tea 0

Coke 1

Orange Juice 1

**Subject Computer Science C-Family Programming**