Question: This class is C++, Please if you can do it right or leave it. Start a new project in Code:: Blocks. This should give you

This class is C++, Please if you can do it right or leave it.

Start a new project in Code:: Blocks. This should give you a hello world program.

You are to modify this program so that it generates two random integers between 1 and 99 and asks the user to enter their sum.

Then it should display the numbers as shown in the example below. Proper output formatting to arrange the numbers in a column as shown is required.

You do not need to indicate if the user entered the correct answer.

Example Output

What is the sum of 11 and 6?

19

11 +6 --- 17

What is the sum of 42 and 63?

105

42 +63 --- 105

Resources

You will need to include cstdlib in order to be able to get random numbers.

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 Databases Questions!