Write a program in Assembly language using MIPS instruction set that reads investment amount of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Michael Brooks is buying a house for $2 000 000. He made an agreement with the National Housing Trust (NHT) to provide 45% financing for his new home. It was agreed with the NHT that he will make...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
(a) Write an equation describing a sinusoidal transverse wave traveling on a cord in the positive direction of a y axis with an angular wave number of 60 cm-1, a period of 0.20 s, and an amplitude of...
-
Calculate the percentage increase in the fractions in Exercise 24.2b when the temperature is raised by 10 K.
-
Let H be the price (in dollars) of a hot dog, and let S be the price (in dollars) of a soft drink, both at a Major League Baseball (MLB) stadium. For hot dog prices between $1 and $6.25, inclusive, a...
-
This appeal involves the validity of a will executed in contravention of an earlier contract to make mutual wills. A husband and wife signed a contract to make mutual wills and then executed those...
-
What is the nominal and effective cost of trade credit under the credit terms of 3/15, net 30?
-
What do you mean by Hardware Software Interface? Give a concrete example. Define the two principle integrity rules for the relational model. Discuss why it is desirable to enforce these rules.
-
Q1. The structure shown consists of a S18 x 70 rolled-steel beam AB and two short members welded together and to the beam. (a) Draw the shear and bending-moment diagrams for the beam and the given...
-
Barr bodies are X chromosomes seen in somatic cells of normal_ Activated; Females O Inactivated; Females Inactivated; Males Activated; Males
-
The HIM manager recently performed an audit of the integrity of the master patient index. Her audit revealed of 200 patient records reviewed, 5% of those patients had a duplicate record created....
-
A company buys 7 new photocopying machines. Each machine costs $4,619. What is the total cost of the machines? Show your calculations.
-
Explain how clinical guidelines, clinical pathways and protocols can help in improving utilization management in healthcare? Provide examples of applying guidelines in the context of utilization...
-
< 1. Describe at least three types of tangible and intangible resources and capabilities. 2. In the text, are human resources used as an example of tangible or intangible resources? Do you agree with...
-
1. Describe divisional organizational structure and critically analyse the advantages and disadvantages of disadvantages of divisionalisation (use academic papers). 2. Bounce Ltd is a leading...
-
The scene where Peter Falk wanders through the on-set extras in search of 'humanity' foreshadows the reveal of his character's secret. True O False
-
Experiment: Tossing four coins Event: Getting three heads Identify the sample space of the probability experiment and determine the number of outcomes in the event. Draw a tree diagram when...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
For each of the following situations, indicate whether the taxpayer(s) is (are) required to file a tax return for 2012. Explain your answer. a. Helen is a single taxpayer with interest income in 2012...
-
How are qualified dividends taxed in 2012? Please give the two rates of tax which apply to qualified dividends, and specify when each of these rates applies._________________________...
-
Do you think the trend discussed in the case will help companies hire more skilled managers and employees to staff foreign operations? Explain. According to a recent report by the Chronicle of Higher...
-
Some companies agree that the move toward internationalization by U.S. universities primarily reflect an attempt to get more money because foreign buyers are willing to pay top dollar to obtain a...
-
Form teams of five. Each team will come up with a list of five positives and five negatives for the trend discussed in the case. Each team will outline a set of implications of what this trend means...
Study smarter with the SolutionInn App