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:
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 BoxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started