Question: Problem 3a: (8 points) Write a C++ program that inputs the length, width, & height (in integers) of a house. Write a function that uses

 Problem 3a: (8 points) Write a C++ program that inputs the

Problem 3a: (8 points) Write a C++ program that inputs the length, width, & height (in integers) of a house. Write a function that uses Call-By-Reference void rect (int& ar, int& v, int len, int wid, int hgt) that computes the area ar and the volume vl of the house Enter your name as a Global variable and all other variables should be local variables in main o rrect. Volume= length * width * height Sample Input Length of House (ft): 50 Width of House (ft): 60 Height of House (ft):20 Sample Output (Your name will replace mine) Cindy has a house with 3000 square feet that contains 60000 cubic feet Problem 3b: (7 points) Draw the memory and run-time stack when rect is called. This should look similar to Fig 2.21c in the textbook and ALL of your variable names should be shown including name. Remember, local variables are stored on the stack and pointers will have arrows. You may hand draw & scan or use Paint or Visio or Googledraw, etc to create this and paste into your document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!