Question: Following the Marie Coding Rules, write a single Marie Subroutine called ' MPY ' that will multiply two positive variables: MP 1 and MP 2
Following the Marie Coding Rules, write a single Marie Subroutine
called MPY that will multiply two positive variables: MP and MP
and place the result in PROD One or both of the Input variables
may be negative and MP could be zero!!
Write a Marie program to input the two variables, determine their sign,
force them to be positive and keep track of how many variables are
negative. If only one variable is negative, the result is negative!
Then place the variables in the subroutines 'input' variables. 'Call' the
subroutine, get the result, and Display the three variables. Halt the
program only when MP is zero, and do not ask for MP
Upload your program named: Progmax to the Assignment dropbox.
Sample Output: Decimal Marie setting for Input and Output!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
