Question: write a program that will compute the volume of a room. User Inputs are the helght, width and length of 8 room. For example, if

write a program that will compute the volume of a room. User Inputs are the helght, width and length of 8 room. For example, if the user inputs the helght as 3, the width as 4 and the length as 5 the volume will be 3**4**5=60. You have to declare three functions: one for Input; one to do the calculatlon; and one for output.
The input function getData has to input the holght, width and langth Into the variables thesieight, thewidth and thelength.
The caloulation function, calculatevolume will reoolve three parameters that represant the haight, width and length, do the caloulation and return the volume of the room.
The output function diepleyoutput has to display the helght, width and length antered by the user as woll as the volume.
The program also has to Indloate the slize of the room as small, medlum or large. If the volume is lass than 100, the slae is small, between 100 and 500 the stze is medlum and greater than 500 the stze is large. For axample:
The volume of a room with height 3, width 4 and length
5 is 60. Size: Small
The volume of a room with height 10, width 14 and length 12 is 1680.
Size: Large
The volume of a room with height 7, width 7 and length
7 is 343. Size: Medium
The main function should include a for loop that allows the user to repeat the calculation of the volume for new input values five times.
INP1501/102/0/2024
You must submit the three functions and the main function you have developed, as well as output produced by the following input data:
345
101412
877
12148
15812
 write a program that will compute the volume of a room.

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!