Question: Write a program in Assembly language using MIPS instruction set that reads investment amount of a person in a company and calculate the amount

Write a program in Assembly language using MIPS instruction set that reads investment amount of a person in a

Write a program in Assembly language using MIPS instruction set that reads investment amount of a person in a company and calculate the amount of profit that he will gain from the company at the end of the year. The company usually declares the profit rate at the end of year based on the investment amount as follows: Investment Amount [800000 1000000] [600000-800000) [400000-600000) < 400000 Profit Rate 25% 12.5% 6.25% 3.125% Profit amount calculated in MIPS Investment Amount / 4 Investment Amount / 8 Investment Amount / 16 Investment Amount / 32 You must write the program using the switch statement. Sample Input/Output: Enter your investment amount = 650000 Your profit amount = 81250

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The following is the solution to write a program in assembly language using MIPS instruction set that reads investment amount of a person in a company and calculates the amount of profit that he will ... View full answer

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 Programming Questions!