Java
Project Requirements:
1.Write a Java program that plays aword game with a user. The program asks the user questions and thencreates a paragraph using the user’s answers.
2.The program must perform thefollowing:
a.Uses a Scanner object to ask theuser: (The program asks for no other information)
i.Full Name (First and Last nameonly) - stores this Full Name in one String object variable.
ii.Age – must be read in as anint.
iii.Profession or expectedprofession
iv.Name of favorite pet
v.Cost of their first vehicle – mustbe read in as a double.
b.All input data must be stored intheir own variable prior to printing out.
c.Display a paragraph of theprogrammer’s choosing that contains the following
i.The user’s full name,first name, and last name in separate places in the paragraph, suchas James Gosling founded Sun Microsystems. James was a childprodigy. The Gosling family is very proud of James.
ii.The user’s age.
iii.The user’s profession in alluppercase regardless of the case the profession was entered.
iv.The user’s favorite pet’s name inall lower case regardless of the case the name was entered.
v.The total cost of the user’s firstvehicle in a rounded two decimal places including the dollar signs.The total cost must include the inputted cost plus a 7.5% salestax. The sales tax rate is stored as a constant in the program.
vi.A statement in parenthesis statingthe total number of characters in the paragraph such as (The abovestory contained 345 characters)
d.Include javadoc class commentfollowing Project Comment Template on the content page.
3.The project requires one files to beturned in - WordGame.java (the source code of your Word Gameprogramming.