Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!
image text in transcribed

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

Pro Oracle Fusion Applications Installation And Administration

Authors: Tushar Thakker

1st Edition

1484209834, 9781484209837

More Books

Students also viewed these Databases questions

Question

Are you still scared of monsters?

Answered: 1 week ago