Assessment taskyour task is to develop a java application

Assignment Help JAVA Programming
Reference no: EM13380358

Assessment Task

Your task is to develop a Java Application that allows the user to read travel booking data from a text file (inBooking.txt), save data in a file (outBooking.txt), display data in a text area, sort data by booking name and search data by booking name.

The application GUI components should consist of a menu bar containing 3 menus (File, Sort Data, Search Data) and a text area (Display Area) as shown below.

647_Application GUI components.png

There are three menus (File, Sort Data, Search Data). The File menu contains 4 items (Open, Show Data, Save Data, Exit), Sort Data menu contains 2 items (Bubble Sort and Merge Sort), Search Data menu contains 2 items (Linear Search and Binary Search). The menu items are described below.

File→Open: Open and read data from inBooking.txt (see format of this file below) and store data in a Linked List or an ArrayList.

The file contains Booking Id (String), Booking Name (String), Flight (double), Accommodation (double), Meal (double) and Total Expenses (double). A sample file format for inBooking.txt is as follows.

1345, Mike Douglas, 102, 120, 100, 322
1879, John Bobber, 200, 180, 120, 500
2560, Andrew Beck, 150, 300, 150, 600
3212, Rick Water, 200, 100, 140, 440

File→Show Data: Read data from ArrayList/Linked List and show in a display area as shown below.

552_Application GUI components2.png

File→Save Data: Read data from ArrayList/LinkedList and save data in outBooking.txt file. The format is same as format in inBooking.txt file.

File→ Exit: Allows user to exit the application.

Sort Data→Bubble Sort: Sort ArrayList/LinkedList by name in ascending order using Bubble Sort algorithm and display sorted data in display area as shown below.

Sort Data→Merge Sort: Sort ArrayList/LinkedList by name in ascending order using Merge Sort algorithm and display sorted data in display area as shown below.

2468_Application GUI components1.png

Search Data→Linear Search: Ask the user to enter a name via a dialog box as shown below and use a linear search algorithm to search for the name. It should display an appropriate message found or not found in display area.

Search Data→Binary Search: Ask the user to enter a name via a dialog box as shown below and use a binary search algorithm to search for the name. It should display an appropriate message found or not found in display area.

116_Application GUI components3.png

Data Validation

Input data validation for name entered to search is required. If no name entered or entered name is longer than 15 characters and OK button is pressed then the application will pop out a message box with an appropriate message.

Data Structures & Algorithms

You must use:
• LinkedList or ArrayList for storing and processing data.
• linear and binary search algorithms for searching.
• bubble sort and merge sort algorithms for sorting.
• two classes to implement the application. One class, named Booking which describes an individual booking and the other class named ProcessBookingApplication which contains GUI with components and methods for sorting, searching and file processing.
• appropriate fields to store booking id, name, flight, accommodation, meal and total booking cost.

Reference no: EM13380358

Questions Cloud

1 write an application class that contains several : 1 write an application class that contains several methods.nbspthe first method should be named greeting and should
1 the appropriate sql statements for each query which : 1. the appropriate sql statements for each query which should be copied from your sql code in mysql and pasted into
Option 1 you can are required to research into one of the : option 1 you can are required to research into one of the following topics on data security or computer-network
You will need to design an interface to a systemyou will : you will need to design an interface to a system.you will need to justify every item that you choose to put into this
Assessment taskyour task is to develop a java application : assessment taskyour task is to develop a java application that allows the user to read travel booking data from a text
What does the abstract keyword dowhat are generics as they : what does the abstract keyword do?what are generics as they relate to the built in linked list class? why do we need
One of your smaller customers needs your help writing a : one of your smaller customers needs your help writing a program. your customer has an e-commerce web site but wants to
This assignment is a case project that will enable you to : this assignment is a case project that will enable you to put to work what you have learned in this course to apply
Create a project called menuplayer which reads in a json : create a project called menuplayer which reads in a json representation of a restaurant menu. a menu has a name ie

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program to find solution tocryparithmetic puzzle

Write a program (Crypta.java) that finds a solution to the cryparithmetic puzzle: TOO + TOO + TOO+ TOO = GOOD

  Write an application with three labeled text field

Write an application with three labeled text fields,one each for the initial amount of a savings account, the annual interest rate, and the number of years. Add a button "Calculate" and a read-only text area to display the balance of the savings acco..

  Menu based program to maintain student records

Write a menu based program to maintain student records. Your program should take the following inputs: 1. Student first name (max. 20 characters) 2. Student last name, (max. 20 characters) 3. Student scores (float/double), eg. 85.4 Problem

  Discuss the legal ramifications of the division of condo

Discuss the legal ramifications of the division of condo, BioTech and other assets. Would it make any difference if Violet sold the property after filing for the dissolution of marriage?

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Write following java expressions in mathematical notation

Write the following Java expressions in mathematical notation.

  Java application which creates bank records

Write down a java application which creates 10000 bank records and the allow user ti enter a balance and customer account info. using a an account number.

  Create a new json view

Add code to your controller to check which view to display.  For this assignment, there will be a URL parameter named "format".  When the value of the "format" parameter is "json" display the JSON view, otherwise display the regular HTML JSP view.

  The data file being used contains records

The data file being used contains records with an employee's name, the number of hours they worked, and their hourly pay rate. Write a program to read the records of information and output (to the Output window or a dialog box) the employee's name..

  Design and implement an applet called circles

Design and implement an applet called Circles that draws 50 circles of random diameter in random locations. If the diameter of a circle is less than a certain value, the circle is ?lled with the color yellow.

  Use data structures and algorithm to implement search engine

For the URLs in the keyword list, sort them by either the number of times the keyword appearing in the pages or the popularity of the pages.

  Write a method called makerow

Write a method called makeRow that is passed two arguments: an int and a String. It returns a String containing n copies of s, concatenated in a row. For instance, if we call the method with makeRow(5, "*"), the method returns *****.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd