Create a program that displays five random addition problems, one at a time, on the computer screen.

Question:

Create a program that displays five random addition problems, one at a time, on the computer screen. Each problem should be displayed as a question, like this: What is the sum of x + y?. The x and y in the question represent random numbers from 1 to 10, inclusive. After displaying the question, the program should allow the user to enter the answer. It should then compare the user’s answer with the correct answer. If the user’s answer matches the correct answer, the program should display the “Correct!” message. Otherwise, it should display the “Sorry, the answer is” message followed by the correct answer and a period. If necessary, create a new project named Advanced24 Project, and save it in the Cpp8\Chap09 folder. Enter your C++ instructions into a source file named Advanced24.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Test the program appropriately.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: