Question: First you will need to develop a GUI form like the picture below: Your GUI Form must have the Frame Icon and add any color

First you will need to develop a GUI form like the picture below:


Travel Cost App ver. 2.0 File Edit TRAVEL COST APP Miles to 

 

Your GUI Form must have the Frame Icon and add any color to any one of the GUI Components.

 

Then, you will need to generate an external class file. Here the class Diagram:


Drive : Mile per gallon : Gasoline Price : Parking Cost: Tolls 

As you in the GUI Form, you will have 2 buttons: the first will calculate the Total cost of the trip using the information entered by the user in the GUI Form. You must to generate an Instance of the TravelCost class using the information gathered in the GUI Form (Don't Forget to do the proper type conversion). Then, It will show the Total Cost in the Result TextField. The Second Button will clear all TextFields.

 

Then add the JMenu to add the MenuItem to Calculate cost and Clear the TextFields.

Travel Cost App ver. 2.0 File Edit TRAVEL COST APP Miles to Drive : Mile per gallon : Gasoline Price : Parking Cost: Tolls Cost: Calculate Result: Clear X

Step by Step Solution

3.46 Rating (153 Votes )

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 Programming Questions!