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 heshe wants to do ex: converting from kilograms to ounces The output should not have any decimal placesrounded 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.
Enter the name of your car: Toyota corozla
Enter the weight of your car in Kilograms:
Select the conversion unit you want to use.
for Ounces, for Pounds, for Grams, for Tons:
TOYOTA COROLLA weighs pounds.
Enter the name of your car: teSLa
Enter the weight of your car in Kilograms:
Select the conversion unit you want to use.
in Java for Ounces, for Pounds, for Grams, for Tons:
TESLA weighs tons.
Enter the name of your car: ferrari
Enter the weight of your car in Kilograms:
Select the conversion unit you want to use.
for Ounces, for Pounds, for Grams, for Tons:
FERRARI: Invalid choice!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
