Assignment 11
Due Date: 04/23/2019
Distance Conversion GUI Program
Write a JAVA FX GUI program that asks the user to enter adistance in miles inside a Text Box. The title of the GUI should beMiles Converter.
The GUI will then present the following two buttons:
- Convert
- Quit
Convert button if clicked should:
- Convert to kilometers
- Convert to inches
- Convert to feet
- And display all three results on the GUI.
Quit button if clicked should:
- Close the GUI
The program will convert the distance to kilometers, inches, andfeet rounded to two decimals. Here are thespecific formulae:
• Convert the miles to kilometers using the followingformula:
kilometers = miles * 1.6093
• Convert the miles to inches
OR
OR