Question
Java Use the Web to locate the lyrics to the traditional song The Twelve Days of Christmas. The song contains a list of gifts received
Java
Use the Web to locate the lyrics to the traditional song The Twelve Days of Christmas. The song contains a list of gifts received for the holiday. The list is cumulative so that as each day passes, a new verse contains all the words of the previous verse, plus a new item. Write an application called TwelveDays that displays the words to the song starting with any day the user enters.
Hint: Use a switch statement with cases in descending day order and without any break statements so that the lyrics for any day repeat all the lyrics for previous days.
-- Create the TwelveDays class.
-- The TwelveDays program displays the correct gifts up to the day provided.
An example of the program is shown below:
From what day do you want to start the song The Twelve Days of Christmas? >> 2 On the 2nd day of Christmas My true love gave to me Two turtle doves and A partridge in a pear tree
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started