Question: 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

SOLVE USING EXCEL Background: . Assume there is a macro (or asub procedure) called MainProgram() .There are 5 variables P, Q, R, X

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 Sub

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!