Advertisement
Can you please answer this question in MIPS (Mars) languageLab.pdf
Can you please answer this question in MIPS (Mars) languageLab.pdf
Upcoming SlideShare
ASSESSMENT CASE PAPER ANALYSIS / TUTORIALOUTLET DOT COMASSESSMENT CASE PAPER ANALYSIS / TUTORIALOUTLET DOT COM
Loading in ... 3
1 of 2
Advertisement

More Related Content

More from sales88(20)

Advertisement

Can you please answer this question in MIPS (Mars) languageLab.pdf

  1. Can you please answer this question in MIPS (Mars) language? Lab: This lab uses 10 years of monthly rainfall data: the rainfall totals from New Brunwick from January 2013 through December 2022. You can find a float array with the rainfall amounts (120 entries) in the lab2 folder in Files on Canvas. The average annual rainfall in New Brunswick is 49.5 inches. rain: .float 2.76, 3.08, 2.72, 2.35, 4.36, 10.04, 4.92, 4.53, 2.22, 0.6, 3.06, 4.87, 2.86, 5.19, 4.51, 3.19, 6.9, 3.93, 7.15, 1.89, 1.23, 4.13, 4.59, 5.34, 5.02, 2.57, 4.65, 2.24, 1.44, 6.13, 2.7, 1.21, 3, 4.3, 1.59, 4.67, 4.93, 4.32, 1.6, 1.31, 4.56, 2.35, 7.15, 0.85, 1.7, 3.07, 2.8, 4.17, 4.61, 1.51, 3.54, 6.29, 7.32, 5.36, 4.08, 7.63, 1.78, 5.2, 2.1, 1.94, 2.17, 6.67, 5.54, 5.04, 5.85, 4.96, 4.3, 4.18, 8.82, 3.2, 8.72, 5.81, 5.1, 3.47, 4.38, 3.96, 7.15, 5.45, 6.31, 4.58, 1.52, 5.18, 2.13, 7.2, 2.02, 3.08, 4.54, 4.21, 2.33, 2.91, 11.39, 5.71, 4.61, 5.66, 3.47, 5.21, 2.21, 5.64, 2.87, 2.5, 4.17, 3.38, 5.02, 6.28, 10.02, 7.37, 1, 1.45, 4.56, 3.67, 3.41, 5.37, 7.43, 3.52, 1, 4.58, 2.69, 6.63, 2.43, 4.43 Use this data to do the following: - create a float array that contains the yearly rainfall in inches - create a float array that contains the yearly rainfall in centimeters - print the year and the rainfall total for the year with the lowest rainfall - print the year and the rainfall total for the year with the highest rainfall - print the number of years with below average rainfall - print the number of years with above average rainfall
  2. Output: Print a table with year, rainfall in inches, and rainfall in centimeters. Your table should have a heading, such as: After the table, print the summary information, with labels: notes: There is no way to tell the syscall how many places to print after the decimal point. I understand if this bothers you, but you have to live with it. Remember your comments should reflect the purpose of the statements. Write comments like "$f6 is rain in cm" not comments like "$f6 = $f4 * $f2". Don't be stubborn and wait to put in your comments till the end. It will be a lot easier if you do. Remember it's very important to comment your register usage.
Advertisement