Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
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.0254Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started