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
-
A company is considering the purchase of a new piece of equipment for $91.000. It is expected to produce the following net cash flows. The payback period is: Year 1 Year 2 Year 3 Year 4 Year 5 Net...
-
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...
-
An old technique for separating a pair of nested drinking glasses that stick together is to run water at different temperatures into the inner glass and over the surface of the outer glass. Which...
-
An aging analysis of Hake Company's accounts receivable at December 31, 2014 and 2015 showed the following: Additional information: 1. At December 31, 2014, the unadjusted balance in Allowance for...
-
If fines for non-compliance are much higher than ever before, how might increased transparency, brought about by environmental accounting disclosures, still act as a competitive advantage to a...
-
Autodesk Corporation produces toolboxes used by construction professionals and homeowners. The company is concerned that it does not have an understanding of its utility consumption. The companys...
-
The following present value factors are provided for use in this problem. Present Value Present Value of an Periods of $1 at 8% Annuity of $1 at 8% 1 0.9259 0.9259 2 0.8573 1.7833 3 0.7938 2.5771 4...
-
The previous year was Amys first year of operating the bookstore. Amy and Ken elected to carry forward a $4,752 net operating loss from the first year of business into 2015. (Note: Net operating...
-
Below screenshot is the example how to get to the answer. While reviewing the sample of audit fees, a senior accountant for the firm notes that the fee charged by the firm's accountants depends on...
-
Assuming the Forest.properties file is the only resource file available, what is the output of calling the hike() method? A. trees B. trees pretty C. trees {0} D. trees null E. The code does not...
-
Which statements about annotations are correct? (Choose three.) A. Annotations contain data that changes throughout the program execution. B. Adding an annotation to a class that already compiles may...
-
How long will the effects of calling Locale.setDefault() be active assuming no other calls to that method are made? A. Until the end of the method. B. Until the program exits. C. Until the next...
-
Assuming the key turquoise is in all five of the files referenced in the options, which file will the following code use for the resource bundle? A. Colors_en.properties B. Colors_CN.properties C....
-
Fill in the blank so the code correctly compiles and creates a Locale reference. Locale loc = Locale.____________________; A. get("Italian") B. of(Locale.ITALIAN) C. get(Locale.ITALIAN) D....
-
A mother earned $18750.00 from royalties on her cookbook. She set aside 20% of this for a down payment on a new home. The balance will be used for her son's future education. She invests a portion of...
-
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._________________________...
-
Prove that van der Waals constants \((a, b)\) can be expressed in terms of critical temperature and pressure as follows: a = 27 R 2 T 2 c 64 P c b = R T c 8 P c a = 27 R 2 T c 2 64 P c b = R T c 8 P c
-
Justify the following statement with illustration: 'Violation of Kelvin-Planck statement leads to the violation of Clausius statement'.
-
Show that where \[ \left(\frac{\partial U}{\partial V} ight)_{T}=\frac{T \beta}{\kappa}-P \] \(\beta=\) Coefficient of volume expansion \(\kappa=\) Isothermal compressibility.
Study smarter with the SolutionInn App