Question: Write a SPIM program that computes the volume and surface area of a rectangular parallelepiped. The formulas for calculating volume and surface area are

Write a SPIM program that computes the volume and surface area of a rectangular parallelepiped. The formulas  

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.]

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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 full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Algorithms Questions!