Question: Question 3 Write a program that will compute the volume of a room. User inputs are the height, width and length of a room. For
Question
Write a program that will compute the volume of a room. User inputs are the height, width and length of a room. For example, if the user inputs the height as the width as and the length as the volume will be You have to declare three functions: one for input; one to do the calculation; and one for output.
The input function getData has to input the height, width and length into the variables theHeight, theWidth and theLength.
The calculation function, calculateVolume will receive three parameters that represent the height, width and length, do the calculation and return the volume of the room.
The output function displayOutput has to display the height, width and length entered by the user as well as the volume.
The program also has to indicate the size of the room as small, medium or large. If the volume is less than the size is small, between and the size is medium and greater than the size is large. For example:The main function should include a for loop that allows the user to repeat the calculation of the volume for new input values five timesINP
You must submit the three functions and the main function you have developed, as well as output produced by the following input data:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
