Homework help please!

Create a C++ program that generates two random numbers that are between 1 to 20. The program asks the user to enter the sum of these two numbers. If the user enter the correct answer, the program displays “Correct”; otherwise, the program displays “ incorrect”. At the end, the program asks if the user want to continue the math game. The program stops if the user enters ‘N’ or ‘n’ to stop the program. You must create two functions as stated below.

a. Call a function named “getNumbers” to create two random numbers that are between 1 to 20.

b. Call a function “FindSum” to ask the user to get the sum of these two numbers. If the user’s answer is correct, the program display “correct”; otherwise the program displays “ Incorrect”
If you don't post what you've started, you'll never get help. We aren't here to do the work for you.
You need show us here for your codes. We will take a look it.
Topic archived. No new replies allowed.