Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that prompts the uset for his/her last name, gender, and age, in

ID: 3676177 • Letter: W

Question

Write a program that prompts the uset for his/her last name, gender, and age, inputting responses for each into memory. Print a greeting to the screen in the form: Hello [prefix] [lastname] ! [age-appropriate-message] Prefix should be: Mr. if the user is male Ms. if the user is female age-appropriate-message should be: All fun and games! Time for school! You can vote! Work, work, work. You are ancient! If the age is less than 5 if the age is between 5 and 17 if the age is 18 if the age is between 18 and 62 if the age is greater than 62 Your program output should adapt to the gender and age of the user. For instance, if a user was a male with last name Shatner and age 84 then the printed greeting should be: Hello Mr. Shatner! You are ancient! The next page will be left blank in case you need more room for yoc program.

Explanation / Answer

Please find the required program below :

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote