Question: Little MAN Computer ( LMC ) Question: Write a simple LMC program to determine if a number evenly divides another one with the following specifications:

Little MAN Computer (LMC)Question:
Write a simple LMC program to determine if a number evenly divides another one with the following specifications:
a)Input 2positive numbers, the first one is the Dividend, and the second one is the Divisor b)If they do not evenly divide, then the program outputs the Residue and asks to input two new numbers c)If they evenly divide, then the program outputs the Quotient and asks to input two new numbers d)When the Dividend entered is 999the program will output 999and stop. e)If the Divisor is larger than the Dividend, your program will switch them and proceed to point b)
Please answer the above with proper LMC code.
Please also include the following:
A flowchart showing the logic flow of your program
The LMC program to resolve the problem with the appropriate comments
Thank you very much.

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!