Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

useing MIPS assembly language on MARS platform Prompt the user to enter the integer scores for Exam 1, Exam 2 and Final Exam, read the

useing MIPS assembly language on MARS platform

Prompt the user to enter the integer scores for Exam 1, Exam 2 and Final Exam, read the scores, compute the weighted average score (using the following formula), and display a labeled output about the weighted average score.

IMPORTANT: For the purpose of this exercise, be sure to observe the following:

You MUST perform (in the appropriate order, of course) ALL the additions, multiplications and divisions shown in the given formula. (You should NOT resort to simplifying the formula in some way, perhaps to make the computation more efficient.)

You MUST use bit-shifting to effect multiplications and divisions involving powers of 2.

Note that 2, 256 and 2048 correspond to some powers of 2 (but not 410 and 853).

You are NOT to replace 410 and 853 (that are not powers of 2) with their "sum-of-powers-of-2" equivalents.

Assume it is the intent to simply discard the fractional portion when a division is performed. When evaluating the first and secondterms on the right hand side (i.e., the Exam 1 and Exam 2 contributions, respectively), however, you MUST perform (in each case) the division after (NOT before) the multiplication (otherwise, accuracy may be unnecessarily lost).

For any multiplication and division operation that cannot be effected with simple (one-time) bit-shifting (i.e., without resorting to doing "sum-of-powers-of-2" replacments), you MUST use another "true" instruction (NOT a pseudoinstruction) instead.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions