We're Open
+44 7340 9595 39
+44 20 3239 6980

CONSTRUCT AN INTERACTIVE JAVA GRAPHICAL USER INTERFACE APPLICATION

  100% Pass and No Plagiarism Guaranteed

CONSTRUCT AN INTERACTIVE JAVA GRAPHICAL USER INTERFACE APPLICATION

1.Construct   an   interactive   Java   Graphical   User   Interface   (GUI)   Application.   This application should be based on the JFrame class and uses SWING GUI components.

 

The task is to develop a Java Application which will make it possible for users to make bookings for holidays, accommodation as well as flights and meals before travelling. This booking process will involve selecting options from three lists which are in drop-down format. Assume that flight, accommodation and meals are always selected by the users. The GUI for the application should be as shown below, with the components laid out in like manner (i.e. in the same order).

 

The booking should be stored in a text file. The program should show the bookings made from the text file.

 

 

 

[40 marks]

 

 

Description of the 3 functions:

 

Function 1: Process Booking:                                                                                [4 marks]

The  “Process  Booking”  button  calculates  and  sums  up  the  cost  of  selected  flights, accommodation as well as meals. A dialog box should pop out after calculations are done,

 

 

Table a. Accommodation

 

 

 

Accommodation

Cost (P)

Motel

150

2 Star Hotel

250

3 Star Hotel

550

 

 

Table b. Flights

 

 

 

Flights

Cost (P)

London

1400

Dubai

400

India

1800

 

 

Table c. Meals

 

 

 

Meals

Cost (P)

All meals

100

Breakfast

20

Lunch

35

Dinner

45

 

 

 

 

 

Function 2: Show Booking Cost                                                                                [4 marks]

 

Upon pressing the ‘Show Booking Cost’ button the total booking cost for the overseas holidays should be displayed, i.e. the cost of flights plus accommodation costs plus cost of meals as shown below:

 

 

 

 

Function 3: Exit                                                                                                  [4 marks]

 

The “Exit” button should allow the user to exit from the application.

 

 

 

 

Hint: Your application MUST have at least  two Classes (Booking and Booking

Application)

 

The class Booking should have the following:

The  class  booking  should  have  variable  and  constant  declaration,  a  constructor  to initialize variables and three (3) methods,

 

  1. To accept index from flight array and return flight cost

 

  1. To accept index from accommodation array and return accommodation cost

 

  1. To accept index from meal array and returns meal cost

 

 

 

 

The class Booking Application should have the following:

Declaration

Declare variables and constants

 

Declare three arrays of type string to store flights, accommodation and meals

 

Declare window width and height

 

Constructor

 

Use JFrame super class to set the window title

 

Create an instance of booking object

 

Call method to create 1 level, 3 combo boxes and 3 buttons

 

Call method to create panels and add label, combo boxes and buttons to panel

 

Add a panel to frame and make it visible

 

Method1

 

Create greeting label, 3 combo boxes (1 for flights, 1 for accommodation and 1 for meals)

and 3 buttons. Register the action listeners

 

Method2

 

Create panel and add components (1 level, 3 combo boxes, 3 buttons) Other

Inner listener class for flight combo box

 

Inner listener class for accommodation combo box

 

Inner listener class for meal combo box

 

Inner listener class for Process Booking Button Inner listener class for Show Booking Cost Button Inner listener class for Exit Button

 

 

Quality of code------------------------------------------------------------------------- [8 marks]

 

Report Structure:

 

You need to submit your work with a proper project document with the following details:

 

     The report cover page should contain student name, Registration ID, Tutor name, Module name and Batch code

 

   Introduction about problem statement

 

   Coding

 

   Output of the problem

 

   Conclusion

 

   References

 

Marking Grid:

 

 

Factors

 

Description

 

Mark

 

REPORT (30)

Introduction about

problem statement

Does the report identify the correct problem

statement with details

4

 

Coding

Does the project use the correct Swing

components and buttons with proper class and methods used

4

Output of the

problem

Does the report shows the expected screen

shot of the output.

4

Reference

5 substantial resources of which 2 should be

journals

15

Conclusion

Does the report give the proper conclusion

3

 

PRESENTATION (10)

Presentation skills

4

Question and answer

6

 

PROJECT SOLUTION AND TESTING (60)

Graphical User Interface presentation (main window and

two dialog boxes) - 2 marks for each part

6

Correct use of Inheritance and Composition

5

Quality of code (indentation, comments, readability and

naming)

8

Class variables and constants, including meaningful names

5

Methods (3 in Booking class, 2 in Booking Application class)

– 2 marks for each method (no marks awarded for main() )

10

Classes including 5 listener classes - 2 marks for each

constructor

10

Constructors - 2 marks for each constructor

4

 

“Process Booking” button that works

4

“Show Booking Cost” button that works

4

“Exit” button that works

4

Total

100

 


100% Plagiarism Free & Custom Written,
Tailored to your instructions


International House, 12 Constance Street, London, United Kingdom,
E16 2DQ

UK Registered Company # 11483120


100% Pass Guarantee

STILL NOT CONVINCED?

View our samples written by our professional writers to let you comprehend how your work is going to look like. We have categorised this into 3 categories with a few different subject domains

View Our Samples

We offer a £ 2999

If your assignment is plagiarised, we will give you £ 2999 in compensation

Recent Updates

Details

  • Title: CONSTRUCT AN INTERACTIVE JAVA GRAPHICAL USER INTERFACE APPLICATION
  • Price: £ 119
  • Post Date: 2018-11-10T07:03:06+00:00
  • Category: Assignment
  • No Plagiarism Guarantee
  • 100% Custom Written

Customer Reviews

 CONSTRUCT AN INTERACTIVE JAVA GRAPHICAL USER INTERFACE APPLICATION CONSTRUCT AN INTERACTIVE JAVA GRAPHICAL USER INTERFACE APPLICATION
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

My writer did a small error in my work but it was fixed by him shortly. The work is admirable and I have submitted it. Now hoping for the best results. I would inform you soon.
Reviews: 5

A masterpiece of assignment by , written on 2020-03-12

The support team is quite friendly and gives you the best solutions. I literally came here crying and went smiling like an idiot. My HR assignment is written beautifully with all the specifications I wanted. This is the best platform to get helped in assignments for me. All the people are supportive. Keep it up you all!