Question
Write a complete Java program that allows the user to enter a choice of three items (song lyrics, nursery rhyme, or haiku). Your program will
Write a complete Java program that allows the user to enter a choice of three items (song lyrics, nursery rhyme, or haiku). Your program will use methods to: Print a welcome message Print a menu of the possible choices Print out the words to the chorus of a song, the words of a nursery rhyme, and a haiku there will a method for each one The user will be allowed to enter choices until he/she signals to stop. Each running of the program will print the menu of choices, read in a choice, and print out the user's choice. The main() method will: Call on the method to print a welcome message Call on the method to print the menu Ask for and read in the user's choice Validate the user input to ensure that it is an acceptable number Call on the appropriate method to print the user's choice Repeat until the user indicates to stop (based on menu choice) The other static methods will be implemented as follows: printWelcome() Parameters: None Return type: void It will print the welcome/introduction message. printMenu() Parameters: None Return type: void It will print the menu of choices. See the Sample Run output for what the menu should look like. printSong() Parameters: None Return type: void It will print out the lyrics of the chorus of a song printNurseryRhyme() Parameters: None Return type: void It will print out the words of a nursery rhyme printHaiku() Parameters: None Return type: void It will print out the words of a haiku java help using eclipse 1.8 please help with code
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