Question: [c++] plz do not let the user continue inputting Strings if a field is inputted as blank. I have to create an error message that

[c++]

plz do not let the user continue inputting Strings if a field is inputted as blank. I have to create an error message that states that field must be filled out with an appropriate answer before they can continue.

plz write program that plays the game of MadLib. this program should prompt the user to enter the following strings:

The first or last name of your instructor

Your name

A food

A number between 100 and 120

An adjective

A color

An animal

After the strings are input, they should be substituted into the story below and output to the console. Dear Instructor [Instructor Name], I am sorry that I am unable to turn in my homework at this time. First, I ate a rotten [Food], which made me turn [Color] and extremely ill. I came down with a fever of [Number 100-120]. Next, my [Adjective] pet [Animal] must have smelled the remains of the [Food] on my homework, because he ate it. I am currently rewriting my homework and hope you will accept it late. Sincerely, [Your Name]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!