Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions