Question: Write a Java code that prints out a title, requests a name from the user, creates the verse or rhyme as indicated in the video,

Write a Java code that prints out a title, requests a name from the user, creates the verse or rhyme as indicated in the video, prints out the verse, and thanks the user for using the program. Spend some time on formatting and make this look nice.

Special Rules: Certain names make this game go from the student-friendly, family-oriented game that it is intended to be, to a surprising awakening for certain people's names. You must check first and not allow this to happen. (Mitch and Tucker are two examples.) Exit the program when someone enters the names Mitch and Tucker!

!! For names with 2 consonants at the front, remove the first 2 letters. Examples are Thanos, Philip, and Steve.

For names beginning in double vowels, remove only the first vowel. An example is Aaron.

The learning goal of this exercise is to save information in variables.

  • Use Scanner to get input from the user.
  • Write Java code that uses Strings and if statements or switch statements to write your rhyme.
  • Comment the sections of code.
  • Use the javac command to compile your code.
  • Use the java command to evaluate the results of your code.

This is the rhyme of the song should be used on the code, so please write the code based on these requirements in Java and post the screenshot of your program if possible.

Write a Java code that prints out a title, requests a name

from the user, creates the verse or rhyme as indicated in the

video, prints out the verse, and thanks the user for using the

Shirley! Shirley, Shirley bo Birley Banana fana fo Firley Fe fi mo Mirley Shirley! Lincoln! Lincoln, Lincoln bo Bincoln Banana fana fo Fincoln Fe fi mo Mincoln Lincoln! Arnold! Arnold, Arnold bo Barnold Banana fana fo Farnold Fe fi mo Marnold! Arnold

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!