Create a function to print the messages


Discussion:

The program is to help a student learn multiplication. I have to use the rand function to produce two positive one-digit integers. The program should type a question such as:

How much is 6 times 7?

The student will then type the answer. The program will then check the answer . If it is correct, print one of the following messages:

Very Good!
Excellent!
Nice Work!
Keep up the good work!

And then ask another multiplication question. If the answer is wrong, print one of the following messages:

No. Please try again/
Wrong. Try once more.
Don't Give up.
No. Keep trying.
Then let the student try the same question again repeatedly, until the student gets it right.

I will have to come with two functions to print the messages. Create a function to print one of the messages when the correct answer is entered and a function to print one of the messages when it is the wrong answer

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a function to print the messages
Reference No:- TGS01936310

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)