Question: write a c program Figure 1: A rectangular prism of length I, width w, and height h Utilizing modular programming, write a C program that

write a c program
Figure 1: A rectangular prism of length I, width w, and height h Utilizing modular programming, write a C program that prompts the user to input the length (I. width (w), and height (h) of a rectangular prism, and then calculates and outputs its volume (V) and surface area (S) by completing the following tasks: . Write a C function named rect _prism_ input to prompt the user to input values for length (D, width (w), and height (h). Please remember to check for invalid user inputs with a while statement. . Write a C function named rect_prism_VS to calculate the volume (V) and the surface area (S) of the rectangular prism according to Formula 3 and 4 below o Formula 3: = 1 , w * h o Formula 4 S = 2 * (1 * w + w * h + h+1) . Write a C function named rect prism_output to print the volume (V) and the surface area (S) of the rectangular prism. . In the main C function, call three functions: rect_prism input, rect _prism VS, and rect_prism output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
