Purpose: Do some computations.
Description:
Create a C program that reads in three integer values
representing the height, width and length of a rectangular
prism/box. Compute the following results using those three
values:
Areas:
- Surface area of the top
- Surface area of the front face
- Surface area of an end
- Surface area of the entire prism
Perimeters:
- of the bottom
- of the front face
- of an end
Volume:
- of the prism
Chord:
- diagonal distance across the prism. That is: the
single chord that crosses the prism from
left-to-right, top-to-bottom, and front-to-back.
Notes:
-----
- Read the three integer input values in the order they were
first mentioned above: height, width, length.
- Print the results in the order listed above.
- Do as much integer math as possible. (Since the inputs are
integers, almost all the results will also be integers.)
- Nicely format and label your output.
- Gradually develop your program in steps:
- Read in your inputs and print them out to confirm
you are reading them in correctly
- Compute just one of the computed values
- Add additional computations one at a time
- Ask about any of the math you are not sure of