Question: 4 . 1 3 LAB: SWITCH lab 1 : 1 2 Days of Christmas The Twelve Days of Christmas. The program should input the user
LAB: SWITCH lab : Days of Christmas
"The Twelve Days of Christmas". The program should input the users choice of day 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 alaying Seven swans aswimming Eight maids amilking Nine ladies dancing Ten lords aleaping Eleven pipers piping Twelve drummers drumming
Only print out one line for each option.
For example: if the input is:
the output is:
Four calling birds
For example: if the input is:
the output is:
Invalid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
