Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions