29 Sep Instructions:?? MIPS Programming: Write a program that reads u
MIPS Programming: Write a program that reads up to 15 temperatures into a static array, and then prints out the average temperatures to 5 decimal places using only integer commands. It will stop taking input when a -761 is entered. Valid temperatures are from -200 to 1000 degrees exclusive of the end points. It will then output the total, the count and the average to 4 decimal places using Integer Commands. It will do all the work in subprograms/functions and use to appropriate registers to pass information. There will be at least 3 subprograms. The first subprogram will receive the base address of the array and the maximum number of elements as arguments into the subprogram. It will return the number of valid elements read. The second subprogram will receive the base address of the array and the number of the valid elements as arguments into the subprogram. It will return the total of the valid elements in the array. The third subprogram will receive the total and count as arguments into the subprogram. It will output the total, count and the average to 5 decimal places or a message that there was no valid input. It will return nothing. Sample: Run 1 Enter a temp (>-200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and -200 and < +1000 degress fahrenheit) or -761 to exit: -761 The total is: -1 The count is: 2 The average temperature is: -0.50000
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.