Question: JAVA PROGRAMMING. input should be entered from the user from the keyboard. Write a program that plays a word game with the user. The program

JAVA PROGRAMMING. input should be entered from the user from the keyboard.
Write a program that plays a word game with the user. The program should ask the user to enter the following: . His or her name .His or her age The name of a city .The name of a college .Atype of animal . Apet's name After the user has entered these items, the program should display the following story inserting the user's input into the appropriate locations: There once was a person named NAME who lived in CITY Even though NAME was only AGE, NAME went to college at COLLEGE NAME graduated and went to work as a PROFESSION Soon thereafter, NAME adopted a(n) ANIMAL named PETNAMIE NAME and PETNAME both lived happily ever after! After building the string, break the string into multiple strings, with each sentence in a separate variable. Then create a string by retrieving the first letter from each sentence and outputting this new string Sample Run: Enter a name: Tonya Enter an age under 18: 15 Enter your city: Enter the name of a college: ISU Enter a profession: cop Enter an animal: cat Enter a pet's name: Rex Normal There once was a person named Tonya who lived in Normal Even though Tonya was only 15, Tonya went to college at ISU Tonya graduated and went to work as a cop Soon thereafter, Tonya adopted a(n) cat named Rex! Rex and Tonya both lived happily ever after! New word is: TETSR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
