Question: HW_1d - Functions - Pass parameters by reference Display Volume 1. Write a program that produces the output shown below: 2. Include four functions: getDimensions

 HW_1d - Functions - Pass parameters by reference Display Volume 1.
Write a program that produces the output shown below: 2. Include four

HW_1d - Functions - Pass parameters by reference Display Volume 1. Write a program that produces the output shown below: 2. Include four functions: getDimensions The function prompts the user to enter three dimensions of a swimming pool, width, length and depth. The values entered by the user are stored in variables declared in main(). are Valid All three dimensions are passed to the function The function determines whether the dimensions are valid. Valid dimensions: Width - greater than 5 feet and less than 20 feet. length - greater than 5 and less than 100 feet. depth - greater than 1 and less than 12. The function returns true if the dimensions are valid Otherwise, false is returned. calc Volume The dimensions are passed to the function The volume is calculated and returned. (volume = width length depth) The volume is 2112 cubic feet. display Volume The volume is displayed. - OUTPUT Width: 22 Length: Depth: Page 6 of 7 The volume is 2122 cubic feet

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!