Question: Using Switch-Case structure, write a C++ program that input length in centimeter from user, then convert the length into meter or kilometer depending on choice.

Using Switch-Case structure, write a C++ program that input length in centimeter from user, then convert the length into meter or kilometer depending on choice. Program should display the result.
1. User choose M to convert from centimeter to meter.
2. User choose K to convert from centimeter to kilometer.
3. For Any other choice entered by user program will display an error message.
:meter=(centimeter /100)Hint
kilometer = (centimeter /100000)

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