Question: Write a program that inputs a value and type of conversion. The program should then display the output after conversion. The program should include the

Write a program that inputs a value and type of conversion. The program should then display the output after conversion. The program should include the following conversions:

  1. 1cm = .394 inches
  2. 1 Liter = .264 gallons
  3. 1 kilometer = .622 miles
  4. 1 kilogram = 2.2 pounds

Make sure that the program accepts only valid choices for the type of conversion.

Step by Step Solution

3.34 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution include include using namespace std int main float value char conversion cout enter the v... View full answer

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 Programming Questions!