d. Write a program to convert English unit to metric as unit by using switch ... case statement. The conversion units as tabulated in Table 2. Table 2: Conversion Units English Unit Metric Unit Unit...


d. Write a program to convert English unit to metric as unit by using switch ... case<br>statement. The conversion units as tabulated in Table 2.<br>Table 2: Conversion Units<br>English Unit<br>Metric Unit<br>Unit Conversion<br>Inch<br>Centimetres<br>1 inch = 2.54 cm<br>Feet<br>Centimetres<br>1 foot = 30.48 cm<br>Feet<br>Meters<br>1 foot = 0.3048 m<br>Yard<br>Meters<br>1 yard = 0.9144 m<br>Miles<br>Kilometres<br>1 mile = 1.609344 km<br>Ounces<br>Grams<br>1 ounce = 28.349523 g<br>1 pound = 0.453592 kg<br>1 ton = 907.18474 kg<br>Pounds<br>Kilograms<br>Tons<br>Kilograms<br>1 pint = 0.473163 |<br>1 quart = 0.946326I<br>Pints<br>Litters<br>Quarts<br>Litters<br>Gallons<br>Litters<br>1 gallon = 3.785306 I<br>English Unit<br>Metric Unit<br>Unit Conversion<br>Inch<br>Centimetres<br>1 inch = 2.54 cm<br>Feet<br>Centimetres<br>1 foot = 30.48 cm<br>Feet<br>Meters<br>1 foot = 0.3048 m<br>1 yard = 0.9144 m<br>1 mile = 1.609344 km<br>Yard<br>Meters<br>Miles<br>Kilometres<br>Ounces<br>Grams<br>1 ounce = 28.349523 g<br>1 pound = 0.453592 kg<br>1 ton = 907.18474 kg<br>1 pint = 0.473163||<br>1 quart = 0.946326I<br>1 gallon = 3.785306 I<br>Pounds<br>Kilograms<br>Tons<br>Kilograms<br>Pints<br>Litters<br>Quarts<br>Litters<br>Gallons<br>Litters<br>Example of output:<br>DSKT ua,Ew SEMLARSHETa ete.<br>DSKTMn2 noEW SEMLARSHEETab convetee<br># ### ## ###<br>2# A.<br># B.<br># c.<br># D.<br># E.<br># F.<br># G.<br># H.<br># I.<br># J.<br># K.<br>世#####并##############并###########<br>Please enter value to convert (e.g: 2e.7): 153<br>Inch to Centimetre<br>A.<br>Inch to Centimetre<br>23<br>Feet to Centimetre<br>%# B.<br>Feet to Centimetre<br>Feet to Meter<br># c.<br>Feet to Meter<br>Yard to Meter<br>D.<br>Yard to Meter<br>Mile to Kilometre<br># E.<br>Mile to Kilometre<br>Ounce to Gram<br>%23F.<br>Ounce to Gram<br># G.<br># H.<br># I.<br># J.<br>Pound to Kilogram<br>Ton to Kilogram<br>Pint to Liter<br>Pound to Kilogram<br>Ton to Kilogram<br>Pint to Liter<br>Quart to Liter<br>Gallon to Liter<br>Quart to Liter<br>Gallon to Liter<br>%23K.<br>Please enter value to convert (e.g: 20.7): 21.497<br>Please enter choice conversion (A - K): H<br>Please enter choice conversion (A - K): R<br>153.00 tons = 138799.27 kg<br>You enter the wrong choice!<br>====== END OF PRGRAM ========-<br>= = END OF PRGRAM =======---<br>Process exited after 14.26 seconds with return value e<br>Press any key to continue . .<br>Process exited after 23.46 seconds with return value e<br>Press any key to continue ...<br>

Extracted text: d. Write a program to convert English unit to metric as unit by using switch ... case statement. The conversion units as tabulated in Table 2. Table 2: Conversion Units English Unit Metric Unit Unit Conversion Inch Centimetres 1 inch = 2.54 cm Feet Centimetres 1 foot = 30.48 cm Feet Meters 1 foot = 0.3048 m Yard Meters 1 yard = 0.9144 m Miles Kilometres 1 mile = 1.609344 km Ounces Grams 1 ounce = 28.349523 g 1 pound = 0.453592 kg 1 ton = 907.18474 kg Pounds Kilograms Tons Kilograms 1 pint = 0.473163 | 1 quart = 0.946326I Pints Litters Quarts Litters Gallons Litters 1 gallon = 3.785306 I English Unit Metric Unit Unit Conversion Inch Centimetres 1 inch = 2.54 cm Feet Centimetres 1 foot = 30.48 cm Feet Meters 1 foot = 0.3048 m 1 yard = 0.9144 m 1 mile = 1.609344 km Yard Meters Miles Kilometres Ounces Grams 1 ounce = 28.349523 g 1 pound = 0.453592 kg 1 ton = 907.18474 kg 1 pint = 0.473163|| 1 quart = 0.946326I 1 gallon = 3.785306 I Pounds Kilograms Tons Kilograms Pints Litters Quarts Litters Gallons Litters Example of output: DSKT ua,Ew SEMLARSHETa ete. DSKTMn2 noEW SEMLARSHEETab convetee # ### ## ### 2# A. # B. # c. # D. # E. # F. # G. # H. # I. # J. # K. 世#####并##############并########### Please enter value to convert (e.g: 2e.7): 153 Inch to Centimetre A. Inch to Centimetre 23 Feet to Centimetre %# B. Feet to Centimetre Feet to Meter # c. Feet to Meter Yard to Meter D. Yard to Meter Mile to Kilometre # E. Mile to Kilometre Ounce to Gram %23F. Ounce to Gram # G. # H. # I. # J. Pound to Kilogram Ton to Kilogram Pint to Liter Pound to Kilogram Ton to Kilogram Pint to Liter Quart to Liter Gallon to Liter Quart to Liter Gallon to Liter %23K. Please enter value to convert (e.g: 20.7): 21.497 Please enter choice conversion (A - K): H Please enter choice conversion (A - K): R 153.00 tons = 138799.27 kg You enter the wrong choice! ====== END OF PRGRAM ========- = = END OF PRGRAM =======--- Process exited after 14.26 seconds with return value e Press any key to continue . . Process exited after 23.46 seconds with return value e Press any key to continue ...
Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here