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 LMCQuestion:
Write a simple LMC program to determine if a number evenly divides another one with the following specifications:
aInput positive numbers, the first one is the Dividend, and the second one is the Divisor bIf they do not evenly divide, then the program outputs the Residue and asks to input two new numbers cIf they evenly divide, then the program outputs the Quotient and asks to input two new numbers dWhen the Dividend entered is the program will output and stop. eIf 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
