Question: Write a java method that displays a menu where the user selects to make conversions: A convert pounds to kilos B convert kilos to pounds

Write a java method that displays a menu where the user selects to make conversions:

A convert pounds to kilos B convert kilos to pounds C convert kilometers to miles D convert miles to kilometers E - Exit

The user will input one option and the program will ask the user a value to convert:

Enter your option: A

Enter a quantity in pounds: 200

Write 4 methods that get as inputs the number entered by the user and return the result to the previous method:

public double poundsToKilos(double pounds){...}

public double kilosToPounds (double pounds){...}

public double kmToM(double pounds){...}

public double MToKm(double pounds){...}

Note: use the transformations from the previous lab for pounds to kilos and km to miles.

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!