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
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