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.

  1. 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.
  2. Ask the user for the starting value of volume. In the above example, the user would enter 42.
  3. 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.
  4. Display the result to the user.
  5. 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

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 General Management Questions!