Question: By using Switch-Case structure, write a C++ program that input capacity from user, then convert the capacity into Liter or Milliliters depending on user choice.
By using Switch-Case structure, write a C++ program that input capacity from user, then convert the capacity into Liter or Milliliters depending on user choice. Program should display the result. 1. If user inputs L, convert from Milliliters to Liters. 2. If user inputs M, convert from Liters to Milliliters. 3. For Any other choice entered by user program will display an error message. Hint Liter = (Milliliters /1000)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
