Write a program that inputs numbers until a sentinel of 0 is entered.--do not save the entered numbersoutput the sum of all the even numbersthe sum of all the odd numbershow many even numbers were...

Write a program that inputs numbers until a sentinel of 0 is entered.--do not save the entered numbersoutput the sum of all the even numbersthe sum of all the odd numbershow many even numbers were enteredhow many odd numbers were enteredoutput if there were more even or odd numbers, or the same amountin addition output the average of all the numbers entered.The average is to be output as quotient and remainder. However if you output the average to 3 decimal places you will receive extra credit.the name of your project must be first initial last name.asm so mine would be elichtenthalProject1.asmuse only instructions we've done in class (ex: add, addi, sub, mult, mul, div, li, la, syscall, all forms of branch, move). no floating point instructions or functions allowedif you use an incorrect name, or instructions we haven't done as of today, it will not be graded.be sure to commentattach and upload the .asm file, or it will not be gradedbe sure the code is well commented, I will not grade any uncommented program.You have 2 submissions, for this project, I will look at the last file submitted.name your file lastnameProject1.Asm or it will not be graded. (example, my file would be lichtenthalProject1.Asm)sample run.
Oct 13, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here