Question: Write a program that asks the user to enter the name of his or her car. Then asks the user to enter the weight of

Write a program that asks the user to enter the name of his or her car. Then asks the user to enter the weight of the car in kilograms. Finally, ask the type of
conversation he/she wants to do (ex: converting from kilograms to ounces). The output should not have any decimal places(rounded with no decimal
places) and the name of the car must be capitalized as shown in the screenshots. Before submitting your code, make sure that your output is similar to
what is shown in the screenshots.
1kg=35.27396195oz
1kg=2.20462262185lb
1kg=1000g
1kg=0.001t
Enter the name of your car: Toyota corozla
Enter the weight of your car in Kilograms: 3150
Select the conversion unit you want to use.
1 for Ounces, 2 for Pounds, 3 for Grams, 4 for Tons: 2
TOYOTA COROLLA weighs 6945 pounds.
Enter the name of your car: teSLa
Enter the weight of your car in Kilograms: 4766
Select the conversion unit you want to use.
in Java 1 for Ounces, 2 for Pounds, 3 for Grams, 4 for Tons: 4
TESLA weighs 5 tons.
Enter the name of your car: ferrari
Enter the weight of your car in Kilograms: 3164
Select the conversion unit you want to use.
1 for Ounces, 2 for Pounds, 3 for Grams, 4 for Tons: 6
FERRARI: Invalid choice!
 Write a program that asks the user to enter the name

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!