Question: PLEASE USING SWITCH STATEMENT ONLY NOT IF ELSE STATEMENTS! THANK YOU! ECET 344 Lab #2 Unit Converter 1. 2. The program should ask the user

 PLEASE USING SWITCH STATEMENT ONLY NOT IF ELSE STATEMENTS! THANK YOU!

PLEASE USING SWITCH STATEMENT ONLY NOT IF ELSE STATEMENTS! THANK YOU!

ECET 344 Lab #2 Unit Converter 1. 2. The program should ask the user to enter a distance in Inches Then, the Program displays a menu Example a. To convert from inches to Centimeters.... enter (A ora) d. To convert from inches to Yard... . . . .._ .. enter (D ord e. To convert from inches to Kilometers.. . enter (E ore) f. To convert from inches to Miles... .. . . ._ enter (F orf) No conversion if any other character besides the listed above 3. 4. Enter the Choice? The program based on the character entered by the user will convert the number entered in step one to that specific unit The program will display the converted number 5. Example outputs Please enter a distance in inches: 50 b. To convert from inches to Meters c. To convert from inches to Feet enter ( B or b) e. To convert from inches to Kilometers f. To convert from inches to Miles enter (E or e enter (F or f) . No conversion will happen if any other character besides the listed above Enter your Choice: D Converting from inches to yards and the conversion result is: 1.38889 Please enter a distance in inches: 1 a. To convert from inches to Centimeters.... enter (A or a) f. To convert from inches to Miles... No conversion will happen if any other character besides the listed above Enter your Choice: b Converting from inches to Meters and the conversion result is: 0.0254

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!