Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SOLVE USING EXCEL Background: . Assume there is a macro (or a sub procedure) called MainProgram() .There are 5 variables P, Q, R, X and
SOLVE USING EXCEL
Background: . Assume there is a macro (or a sub procedure) called MainProgram() .There are 5 variables P, Q, R, X and Y in this macro. . Variables P, Q, R are assigned initial values (Ex: P-10, Q-15 and R-20). When the MainProgram() macro is run, values of these 5 variables P,Q,R,X and Y will change accordingly. You are asked to fill the values for all five variables (P.Q,R.X and Y) at 4 different points in time below. Note: If the value of the variable is "zero" then you must type "O" (without the double quotes, ofcourse). If a variable does not take any value at any given point, then type "BLANK" (without the double quotes). It is important to note Sub MainProgram ( Dim P, Q, R as integer P=10 Q-15 R=20 Write down the values of the 5 variables at this point: X- Q-R Y=P+0 Write down the values of the fo 5 variables at this point P=X+5 R=X+Y-10 "Write doun the vahues of the following 5 variables at this R=SQR M * 2 "Write doun the values of the following 5 variables at this End SubStep 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