Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Hmmm program(Harvey Mudd Miniature Machine), average.ha, that repeatedly

ID: 3925900 • Letter: W

Question

Write a Hmmm program(Harvey Mudd Miniature Machine), average.ha, that repeatedly prompts for and reads in a sequence of integers and prints their average (rounded down, since we are dealing with integers) and prints the remainder (possibly 0). To mark the end of your sequence, enter 0. This last 0 should not be counted in the average (ie don't count it as an entry). Eg

Note: if just a 0 is entered, nothing should be printed.

Use comments to provide a short narrative at the start of each program.

*** MUST BE IN HMMM

Explanation / Answer

Here is the assembler output when given this program:

This is an example of the program being run:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote