Question: Really need help with this assignment! Assembly programming . Objectives: Learn how to write an assembly program that uses integer arithmetic, FP arithmetic, data transfer,

Really need help with this assignment! Assembly programming .Really need help with this assignment! Assembly programming . Objectives: Learn howto write an assembly program that uses integer arithmetic, FP arithmetic, data

Objectives: Learn how to write an assembly program that uses integer arithmetic, FP arithmetic, data transfer, transfer of control, and FP conversion assembly instructions. Also learn how to use an assembly simulator with basic I/O system calls. Submit your assignment through the Blackboard portal for Assignment #5 Your assignment is to write a MIPS program that successfully executes on the QtSpim simulator. Your program should prompt the user to enter a list of integer values, one per line, with the last value being negative. Your pro- gram should read in this sequence of nonnegative integer values until the negative value is encountered. Afterward:s your program should print the (1) sum, (2) minimum value, (3) maximum value, (4) mean, and (5) variance. You should test your solution using the QtSpim simulator. You can assume that there is between one and 100 non negative values in the list, only the last value entered is negative, and this negative value should not be considered when calculating the five items above. Below is an example session, where the values 2, 1, 3, and -1 are entered by the user. As much as possible, you should make your output use a similar format. Enter integer values, one per line, terminated by a negative value. 2 Sum is: 45 Min is: 1 Max is: 9 Mean is: 5.00000000 Variance is: 6.66666651 Note the variance is: variance X-the value of the ith element -the mean of X N the number of elements All of the calculated output should be preceded by appropriate text identifying what is being printed. -1 NOTE: You may read in the integer values and store them into an array or you may calculate the average and variance as you read in the values. You should have a comment beside each instruction in the assembly program (or at a minimum a comment for a small group of related instructions) to help make your code more understandable. You should also have comments at the top of the file indicating your name, this course, and the assignment. For example: Objectives: Learn how to write an assembly program that uses integer arithmetic, FP arithmetic, data transfer, transfer of control, and FP conversion assembly instructions. Also learn how to use an assembly simulator with basic I/O system calls. Submit your assignment through the Blackboard portal for Assignment #5 Your assignment is to write a MIPS program that successfully executes on the QtSpim simulator. Your program should prompt the user to enter a list of integer values, one per line, with the last value being negative. Your pro- gram should read in this sequence of nonnegative integer values until the negative value is encountered. Afterward:s your program should print the (1) sum, (2) minimum value, (3) maximum value, (4) mean, and (5) variance. You should test your solution using the QtSpim simulator. You can assume that there is between one and 100 non negative values in the list, only the last value entered is negative, and this negative value should not be considered when calculating the five items above. Below is an example session, where the values 2, 1, 3, and -1 are entered by the user. As much as possible, you should make your output use a similar format. Enter integer values, one per line, terminated by a negative value. 2 Sum is: 45 Min is: 1 Max is: 9 Mean is: 5.00000000 Variance is: 6.66666651 Note the variance is: variance X-the value of the ith element -the mean of X N the number of elements All of the calculated output should be preceded by appropriate text identifying what is being printed. -1 NOTE: You may read in the integer values and store them into an array or you may calculate the average and variance as you read in the values. You should have a comment beside each instruction in the assembly program (or at a minimum a comment for a small group of related instructions) to help make your code more understandable. You should also have comments at the top of the file indicating your name, this course, and the assignment. For example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!