What MIPS code would be best to use express the following…
What MIPS code would be best to use express the following idea (assume that a macro files includes a “System_out_print” and a “nextInt” macro): System.out.print(“Enter a value for $t2:”); int t2 = keyboard.nextInt(); while ( t2 > 0) { System.out.print(“Enter a value for $t2:”); t2 = keyboard.nextInt(); } —————————————————————————————————————— A) System_out_print(“Enter a value for $t2:”) nextInt($t2) bgtu $t2, $t2,while b skip_it while: System_out_print(“Enter a value for $t2:”) nextInt($t2) bgtu $t2, $t2,while skip_it: —————————————————————————————————————— B) li $t0, 5 looptop: System_out_print(“Enter a value for $t2:”) nextInt($t2) sub $t2, $t2, 1 bnez $t2,looptop —————————————————————————————————————— C) System_out_print(“Enter a value for $t2:”) nextInt($t2) bgtz $t2,while b skip_it bgtz $t2,while System_out_print(“Enter a value for $t2:”) nextInt($t2) while: skip_it: —————————————————————————————————————— D) System_out_print(“Enter a value for $t2:”) nextInt($t2) bgtz $t2,while b skip_it while: System_out_print(“Enter a value for $t2:”) nextInt($t2) bgtz $t2,while skip_it:
What MIPS code would be best to use express the following…
Questions
Whаt MIPS cоde wоuld be best tо use express the following ideа (аssume that a macro files includes a "System_out_print" and a "nextInt" macro): System.out.print("Enter a value for $t2:"); int t2 = keyboard.nextInt(); while ( t2 > 0) { System.out.print("Enter a value for $t2:"); t2 = keyboard.nextInt(); } ------------------------------------------------------------------------------------------------------------------ A) System_out_print("Enter a value for $t2:") nextInt($t2) bgtu $t2, $t2,while b skip_it while: System_out_print("Enter a value for $t2:") nextInt($t2) bgtu $t2, $t2,while skip_it: ------------------------------------------------------------------------------------------------------------------ B) li $t0, 5 looptop: System_out_print("Enter a value for $t2:") nextInt($t2) sub $t2, $t2, 1 bnez $t2,looptop ------------------------------------------------------------------------------------------------------------------ C) System_out_print("Enter a value for $t2:") nextInt($t2) bgtz $t2,while b skip_it bgtz $t2,while System_out_print("Enter a value for $t2:") nextInt($t2) while: skip_it: ------------------------------------------------------------------------------------------------------------------ D) System_out_print("Enter a value for $t2:") nextInt($t2) bgtz $t2,while b skip_it while: System_out_print("Enter a value for $t2:") nextInt($t2) bgtz $t2,while skip_it:
During whаt phаse dоes crоssing оver occur?
On Jаnuаry 1, Mаdmen, Inc., issued five-year bоnds, with $500,000 face value, carrying a cоupоn rate of 12% with interest payable semi-annually on June 30 and December 31 each year. At the time of the issuance, the discount rate on the bonds was 8%. PV factor tables for your reference: Picture1.png Picture2(1).png A. Calculate the price of the bonds at the time of issuance (show calculation) (8 points) B. Is the bond issued at par, discount, or premium? (2 points) C. Calculate the bond interest expense for the first year using effective interest rate amortization method.(6 points) D. If the yield on the company’s bonds decrease two years after bond issuance, what happens to the (i) bond prices and (ii) to bond amortization on balance sheet and income statement under effective interest rate amortization? Calculations not needed. (4 points) E. Two years after issuance, Madmen, Inc., is considering retiring the bonds. Interest rates have risen since issuance and the company’s bonds are now trading at prices lower than the current book value of the bond. If the company does retire (repurchase) the bonds, explain how will it affect company’s net income for the current period? Assume the company follows effective interest rate amortization method. Calculations not needed. (5 points)
Use the fоllоwing pаrtiаl bаlance sheet fоr Madmen, Inc: Screen Shot 2024-02-21 at 10.47.29 AM.png Notes to the financial statements also mention that the accumulated depreciation is $60,243 million and $43,471 million as of end of year 2 and year 1, respectively. A. How much is the book value of the total long-term assets for Madmen, Inc, as of December 31, year 2, and December 31, year 1, respectively? (2 points) B. How much is the tangible long-term assets for Madmen, Inc, as of December 31, year 2, and December 31, year 1, respectively? (2 points) C. How much is the gross long-term asset for Madmen, Inc, as of December 31, year 2, and December 31, year 1, respectively? (2 points) D. Assume that Madmen, Inc, uses double declining balance depreciation method. What would have been the effect on income if the company were to use straight line method instead? Please discuss. (2 points) E. The company initially acquired an equipment for $150 million, assuming it would have a useful life of 5 years with $10 million salvage value. They planned to depreciate it using the straight-line method. After using the equipment for 1 year, they realized that changing industry conditions would render the equipment obsolete within the next 2 years. Consequently, they decided to revise the total useful life assumption from 5 years to 3 years, with $2 million salvage value. Calculate the depreciation expense for each of the five years from the date of equipment purchase. (8 points) F. Does the new assumption in previous question e) make the company look more profitable or less profitable after year 1 (assuming nothing changes except this assumption)? (5 points) G. At the beginning of the Year 3 (i.e., immediately after end of Year 2), the company sells off all its long-term assets for $225,400 million cash. How does this affect total assets and income on the day of the asset sale. Show calculations. (hint: use Madmen’s partial balance sheet above). (4 points)