Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program (java project/class) that plays a word game with the user. The program should ask the user (in a descriptive/user-friendly way1) to enter
Write a program (java project/class) that plays a word game with the user. The program should ask the user (in a descriptive/user-friendly way1) to enter the following: . His/her NAME . His/her AGE The name of the CITY he/she lives in The name of the STATE he/she lives in The name of the COLLEGE he/she studies at His/her DEGREE pursuit His/her GPA . .His/her PROFESSION Afterthe user has entered these items2, the program should display the following story (inserting the user's input into the appropriate location): There once was a person named NAME who lived in CITY, STATE. In February 2019, at the age ofAGE NAME went to college at COLLEGE to pursuit a degree in/of DEGREE. NAME graduated with a GPA grade average andwenttoworkas a PROFESSION. NAME had a happy and successful life. Follow the Assignment Code Convention. For example, a message like Please enter you rage" or "Please enter an integral number representing your age Would allow the user to know what they should enter 2When theuserenters the information, whatare you going to do with it until you display the story? Store itin variables? What type ofvariable? You might want the AGE to be an integer, GPA be a double, and all the textual information be strings. 3 Do not display the word NAME, AGE, etc. in the story; replace them with the input the user enters. Do not hard code your information (unless you think all the users will have the same information than you, remember am going to be one of your user too)
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