Question: Create an object-oriented program using C++ to create a sample loop. The loop should display the value of the variables i and j with a

Create an object-oriented program using C++ to create a sample loop.

The loop should display the value of the variables i and j with a message box.

Use the following variables for the loop.

i = 0 To 9

j=10-i

Create an OK button. Use the message a message box in

The message box output should be "The value of j is " j " The value of k is " k

The output value of your variables will be placed in the appropriate format.

When executed correctly the following should be displayed in your message box on your screen:

Create an object-oriented program using C++ to create a sample loop. The

Next click on the OK button; one variables values should increment and the other variables value should decrement.

After you successfully run this program tell me which variables value increases and which variables value decreases. Use the words increased or decreased to describe the values placements.

The value of i is 0. The value ofj is 10. OK Message Box

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!