subject
Business, 25.06.2020 03:01 hannahbannana98

You are tasked to use the same positive integers from Part A to also compute: h = f/g; i = (f+g) MOD h_quotient; More formally, write MIPS code to output the result of above expression of h and i without using any built-in MIPS/MARS instructions for multiplication or division. The values already entered for Part A for a, b, c, and d shall be used. Output the value of h and i in {quotient with remainder} in a format as separate decimal integers. Indicate the denominator for the remainder. To receive credit, no multiplication, no division, and no shift instructions shall be used. Namely, do not use any of {mul, mul. d, mul. s, mulo, mulou, mult, multu, mulu, div, divu, rem, sll, sllv, sra, srav, srl, srlv}. The goal is to compose your own division technique. In addition, use of a loop is required for credit to realize the division code. It is part of the project points to design a way to realize division using a loop. Do not use of Macro, Subroutines, or Functions in this project. You can refer to the definition of division and how division works. For example, given a positive integer X, and a positive integer Y where X>Y then the division X/Y is computed such that unique integers Q and R satisify X=( Y * Q + R) where 0 ≤ R < Y. The value Q is called the quotient and R is called the remainder. Some examples are: {X = 7, Y = 2} then 7 = 2 * 3 + 1 so Q=3 and R=1 {X = 8, Y = 4} then 8 = 4 * 2 + 0 so Q=2 and R=0 {X = 13, Y = 5} then 13 = 5 * 2 + 3 so Q=2 and R=3 Sample output for Part B is:
f_ten = 49026
g_ten = 13122
h_quotient = 3
h_remainder = 9660
i_mod = 0

ansver
Answers: 2

Other questions on the subject: Business

image
Business, 22.06.2019 07:00, robertotugalanp1wlgs
Bridgeport company began operations at the beginning of 2018. the following information pertains to this company. 1. pretax financial income for 2018 is $115,000. 2. the tax rate enacted for 2018 and future years is 40%. 3. differences between the 2018 income statement and tax return are listed below: (a) warranty expense accrued for financial reporting purposes amounts to $7,500. warranty deductions per the tax return amount to $2,200. (b) gross profit on construction contracts using the percentage-of-completion method per books amounts to $94,700. gross profit on construction contracts for tax purposes amounts to $67,100. (c) depreciation of property, plant, and equipment for financial reporting purposes amounts to $61,800. depreciation of these assets amounts to $75,700 for the tax return. (d) a $3,600 fine paid for violation of pollution laws was deducted in computing pretax financial income. (e) interest revenue recognized on an investment in tax-exempt municipal bonds amounts to $1,500. 4. taxable income is expected for the next few years. (assume (a) is short-term in nature; assume (b) and (c) are long-term in nature.) (a) prepare the reconciliation schedule for 2017 and future years. (b) prepare the journal entry to record income tax expense for 2017. (c) prepare the income tax expense section of the income statement beginning with “income before income taxes.” (d) determine how the deferred taxes will appear on the balance sheet at the end of 2017.
Answers: 1
image
Business, 22.06.2019 14:10, gia2038
Carey company is borrowing $225,000 for one year at 9.5 percent from second intrastate bank. the bank requires a 15 percent compensating balance. the principal refers to funds the firm can effectively utilize (amount borrowed − compensating balance). a. what is the effective rate of interest? (use a 360-day year. input your answer as a percent rounded to 2 decimal places.) b. what would the effective rate be if carey were required to make 12 equal monthly payments to retire the loan?
Answers: 1
image
Business, 22.06.2019 17:10, mikailah0988
At the end of the current year, accounts receivable has a balance of $550,000; allowance for doubtful accounts has a credit balance of $5,500; and sales for the year total $2,500,000. an analysis of receivables estimates uncollectible receivables as $25,000. determine the net realizable value of accounts receivable after adjustment. (hint: determine the amount of the adjusting entry for bad debt expense and the adjusted balance of allowance of doubtful accounts.)
Answers: 3
image
Business, 22.06.2019 19:00, FoxGirl1971
1. regarding general guidelines for the preparation of successful soups, which of the following statements is true? a. thick soups made with starchy vegetables may thin during storage. b. soups should be seasoned throughout the cooking process. c. finish a cream soup well before serving it to moderate the flavor. d. consommés take quite a long time to cool.
Answers: 2
You know the right answer?
You are tasked to use the same positive integers from Part A to also compute: h = f/g; i = (f+g) MOD...

Questions in other subjects: