Question: ###Please do it by using NetBeans IDE 8.2 1. Design a simple temperature and length converter application. (UPLOAD ConvertFrame.java & ConvertTest.java ) The requirements are
###Please do it by using NetBeans IDE 8.2
1. Design a simple temperature and length converter application. (UPLOAD ConvertFrame.java & ConvertTest.java )
The requirements are that:
a. Create a FlowLayout.
b. Display a text (Converter) on the title bar.
c. Add two labels as shown in the figure below.
d. Add two text fields with a size of 5 as shown in the figure below.
e. Add two command buttons as shown in the figure below.
f. A user can press enter in a text field or click on a button to convert temperature from Fahrenheit to Celsius or length from Inch to Centimeter.
i. If a user presses enter in a text field, convert the input and display it.
ii. If a user prefers to click on convert button, convert the input and display it.
g. Display the conversion results as integers.
h. Set the width of the frame as 550 and height as 180.
i. Hint: You can use getText() method to get the input from a text field, and you can use setText() method to display the output in a label.

2. Please follow the following statements: (UPLOAD Vehicle.java & Car.java & Bicycle.java & VehicleTest.java)
a. Create an abstract class Vehicle including only one abstract method which is GetCarbonFootprint.
b. Create a subclass Car. A car has an instance variable gallon and a constructor. A cars carbon footprint is calculated by gallons *20.
c. Create another subclass Bicycle. A bicycles carbon footprint is 0.
d. Create a test class. Include a Vehicle array with a length of 2. The first element of it will be a car and the second element of it will be a bicycle.
e. Display carbon footprints of the car and bicycle by calling the method GetCarbonFootprint polyphormically.

converter Enter Fahrenheit temperature: 45Convert Temperature in Celsius is:7 Enter Inch length: 5 Convert Length in Centimeter is: 12 Sample Output c:\javalassignments4306>Java VehicleTest Bicycle: 0 Car that has used 40,00 gallons of gas: 800,00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
