Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started