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: MP1 and MP2
and place the result in PROD1. One or both of the Input variables
may be negative and MP2 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 MP1 is zero, and do not ask for MP2!
Upload your program named: Prog5.max to the Assignment dropbox.
Sample Output: ('Decimal' Marie setting for Input and Output!)
12
10
120
Following the Marie Coding Rules, write a single

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 Programming Questions!