Question: 4 . 1 3 LAB: SWITCH lab 1 : 1 2 Days of Christmas The Twelve Days of Christmas. The program should input the user

4.13 LAB: SWITCH lab 1: 12 Days of Christmas
"The Twelve Days of Christmas". The program should input the users choice of day (1-12) and display the corresponding gift. Use a switch statement to determine the output. Remember the following gifts are part of the Twelve Days of Christmas: A partridge in a pear tree Two turtle doves Three French hens Four calling birds
Five gold rings Six geese a-laying Seven swans a-swimming Eight maids a-milking Nine ladies dancing Ten lords a-leaping Eleven pipers piping Twelve drummers drumming
Only print out one line for each option.
For example: if the input is:
4
the output is:
Four calling birds
For example: if the input is:
13
the output is:
Invalid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!