Question: create a simple LMC program to determine if a number evenly divides another one: a) Input 2 numbers b) If they do not evenly divide,
create a simple LMC program to determine if a number evenly divides another one:
a) Input 2 numbers
b) If they do not evenly divide, then the program outputs 0 and asks to input two new numbers, and
c) If they evenly divide, then the program outputs the quotient and stops execution.
A flowchart showing the logic flow of your program. ( well illustrated and explained)
The LMC program to resolve the problem
Description of at least 6 different test scenarios (for example first number bigger than the second, second number bigger than the first, negative number, etc.) that you used to run the simulator and the results obtained explaining why your program logic is giving those results. Kindly use peter higginson LMC simulator to run the correct program and tesy
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
Sure lets first create a simple LMC Little Man Computer program in assembly language to achieve the described functionality The LMC program will take ... View full answer
Get step-by-step solutions from verified subject matter experts
