Question: Please help me do this assigment Your program Assignment Write a Word Game program that plays a word game with the user. The program should
Your program Assignment Write a Word Game 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 A profession A type of animal A pet's name Use the getline(cin, variable) syntax since you will have problems when you ask a user for character input that is more than 1 word such as (Lone Star College). Also pay attention to the discussion on cin.ignore() 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. At the age of AGE, NAME went to college at COLLEGE. NAME graduated and sent to work as a PROFESSION. Then, NAME adopted a(an) ANIMAL named PETNAME. They both lived happily ever after The output should be spaced on lines of output so that it reads as a normal paragraph with number of words in each line evenly spaced. Using the "In" should allow you to keep each line about the same length Example of output: hat is yoer or at least hou at is yeer et's sane Ceerrent fetere.or past3 Carah eady fer the funt Press EnterIt lieed in Heuston
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
