Write a SPIM program that computes the volume and surface area of a rectangular parallelepiped. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a SPIM program that computes the volume and surface area of a rectangular parallelepiped. The formulas for calculating volume and surface area are as follows: volume = abc where a, b, c are the sides of rectangular parallelepiped respectively. • surfaceArea = 2(ab + bc + ac) Your SPIM program • • • Display the results like this: for example, the volume is 8 and the surface area is 10 The volume of the rectangular parallelepiped is 8 The surface of the rectangular parallelepiped is 10 defines variables a, b, c, volume, and surfaceArea prompts user to enter three integers and store them to variable a, b, c respectively computes the volume and stores the value to the variable volume computes the surface area of the rectangular parallelepiped and stores result to the variable surfaceArea. (1) Screenshot of your program: [Load your program into QtSPIM and run your program. Take a screenshot showing program code and register values.] Write a SPIM program that computes the volume and surface area of a rectangular parallelepiped. The formulas for calculating volume and surface area are as follows: volume = abc where a, b, c are the sides of rectangular parallelepiped respectively. • surfaceArea = 2(ab + bc + ac) Your SPIM program • • • Display the results like this: for example, the volume is 8 and the surface area is 10 The volume of the rectangular parallelepiped is 8 The surface of the rectangular parallelepiped is 10 defines variables a, b, c, volume, and surfaceArea prompts user to enter three integers and store them to variable a, b, c respectively computes the volume and stores the value to the variable volume computes the surface area of the rectangular parallelepiped and stores result to the variable surfaceArea. (1) Screenshot of your program: [Load your program into QtSPIM and run your program. Take a screenshot showing program code and register values.]
Expert Answer:
Answer rating: 100% (QA)
CODE data prompta asciiz Enter the length a promptb asciiz Enter the width b promptc asciiz Enter the height c resultvolume asciiz The volume of the rectangular parallelepiped is resultsurface asciiz ... View the full answer
Posted Date:
Students also viewed these algorithms questions
-
Data Structures and Algorithm Analysis in C++, Third Edition books.google.com.et books Clifford A. Shaffer - 2012
-
Write a c program to implement phone book dictionary using Binary Search Tree which provides following operations: (a) add new entry in phone book, (b) remove entry from phone book, (c) search phone...
-
Write a C Program to Check Leap Year using function
-
Using monthly data for Meta since its IPO date of 31/12/2019, estimate equity beta for Meta. Compare your estimate of Metas equity beta with Facebooks beta provided by Yahoo Finance and comment on...
-
What are the direct and indirect costs of an IPO? MINI CASE Randys, a family-owned restaurant chain operating in Alabama, has grown to the point where expansion throughout the entire southeast is...
-
What are the probability limits of (1/n)LM, where LM is defined in (11-42) under the null hypothesis that 2 u = 0 and under the alternative that 2 u 0?
-
(Identification of Income Statement Deficiencies) John Amos Corporation was incorporated and began business on January 1, 2004. It has been successful and now requires a bank loan for additional...
-
Preble Company manufactures one product. Its variable manufacturing overhead is applied to production based on direct labor-hours and its standard cost card per unit is as follows: Direct material: 5...
-
Atx 1 How,59 Minutes 45 Secon D Question 1 4 pts Answer the following question using the information below Craft Concept manufactures small tables in its Processing Department Direct materials are...
-
A rotating step shaft is loaded as shown, where the forces F A and FB are constant at 600 lbf and 300 lbf, respectively, and the torque T alternates from 0 to 1800 lbf in. The shaft is to be...
-
Which generations make up the current workforce? Which generations make up the current workforce? Generation X: 1964-1980, Generation Y/Millennials: 1980-2000, Generation Z: 2000-2010 Baby boomers:...
-
Context This task requires analysing a network scenario, design the network architecture and recommend IT solutions including ethical, security and sustainability considerations.The purpose of this...
-
What was the Prime Cost Percent for Mandy's BBQ Pit for August? Select one: a. 46.5% b. 73.9% c. 63.4% d. 85%
-
Finding Critical Values and Confidence Intervals. In Exercises 5-8, use the given information to find the number of degrees of freedom, the critical values x? and x*, and the confidence interval...
-
An investor sold 100 shares of ABC stock short at $25 and buys one ABC Jan 30 call @ $5. What is this investor's maximum gain, maximum loss, and breakeven points from this strategy?
-
Jake, Sachs and Brianne own a tour company called Adventure Sports. The partners share profits and losses in a 1:3:4 ratio. After Lengthy Dissagreements among the partners and several unprofitable...
-
B C D H M Campbell's Painting Company Worksheet For the month ended December 31, 2017 Adjustments Adjusted Tral Bance Income Statement Debit Credit Debit Credit Debid Credit Balance Sheet Debit...
-
Differentiate. y = ln(3x + 1) ln(5x + 1)
-
At the end of May, the sales journal of Mountain View appears as follows. Sales Journal Date Account Debited Invoice Number PR Cost of Goods Sold Dr. Inventory Cr. Accounts Receivable Dr. Sales Cr....
-
Prepare headings for a cash disbursements journal like the one in Exhibit E-A.4. Journalize the April transactions from Exercise E-10 that should be recorded in the cash disbursements journal...
-
Houst Pharmacy uses the following journals: sales journal, purchases journal, cash receipts journal, cash disbursements journal, and general journal. On June 5, Houst purchased merchandise priced at...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App