Professional Documents
Culture Documents
Lab Session 10
Task 1:
Repeat the Task 3 of previous Lab Session using do-while loop.
Task 2:
Write a program that accepts dates written in numerical form and then output them as a complete form.
You can assume that user will enter valid date as well. No need to check for date validity but definitely if
user enters wrong month, error message should be displayed. Use switch statement to display month
name.
(This task was given in Quiz 3 of Session 2011)
Task 3:
Write a program that performs a survey tally on beverages. The program should prompt for the next
person until a value–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
***************************************************************************************
1. Coffee 2. Tea 3.Coke 4. Orange Juice
***************************************************************************************