Create a GUI program to convert meters to feet and feet to meters. As a beginning point, you may use either the GUI you created for Lab 11 or email me with a request for a copy of the program from me.
Use the following formulas to calculate the conversions:
meters = 0.305 * feet
feet = (1 / 0.305) * meter
When the user enters the distance either in meters or in feet, the results should be displayed in a dialog box and all user input should be cleared from the text field.
All components should be JavaFX. Points will be deducted if Swing/AWT components are used. You MUST use lambda in this program. Lambda is the most efficient way to handle events. Points will be deducted if lambda is not included. Also, use the appropriate access modifiers for the data fields (components).
For 2 points extra credit, in addition to displaying results in a dialog box, also write the results to a file of the users choice using JFileChooser and include exceptions as needed.
Sample Output: see image.
Before starting this lab, be sure to refer to the How Grades are Determined document in eLearn for proper file name, documentation, naming conventions, etc. Points may be deducted if submitted incorrectly. Before submitting in the dropbox, please reread the entire assignment to confirm all requirements have been met.
Recommended name for new Java project: LastnameFirstname_Lab12
Recommended name for package: chap15EventDriven
Recommended name for class: FeetMetersConversion