Question: In this design problem, you will design a program that will function as a volume unit converter. Your program should have the following general behavior.
In this design problem, you will design a program that will function as a volume unit converter.
Your program should have the following general behavior. Remember that you can compare strings using the == operator.
- Ask the user for the starting unit of volume: cubic centimeters (cm3), cubic inches (in3), or cubic millimeters (mm3). For example, if the user would like to find out how many cubic centimeters are in 42 cubic inches, the user would select cubic inches.
- Ask the user for the starting value of volume. In the above example, the user would enter 42.
- Perform the conversion operation. There are 16.387 cubic centimeters per cubic inch and 0.061 cubic inches per cubic centimeter. There are 1000 cubic millimeters per cubic centimeter.
- Display the result to the user.
- Repeat the above steps until the user presses the stop sign button.
This first stage (initial program design) is individual. Make sure to follow the five-step program design process.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
