Develop and implement software solutions

Assignment Help JAVA Programming
Reference no: EM132290332

Objectives

The purpose of this assessment item is to assess your skills attributable to the following learning outcomes and achieving the expected graduate attributes of advanced level knowledge, cognitive, technical, and creative skills, and self-management.

• Design and implement appropriate data structures for application development
• Analyse, develop and implement software solutions with the focus on data structures and algorithms
• Apply classes, inheritance, polymorphism, and exception handling

Assessment task
Your task in this assessment is to analyse the given problem, model, and design the required data structures using UML class diagrams. You will be implementing the software solution, applying efficient algorithms, inheritance, polymorphism, and exception handling. The topics required for this assessment task are from Weeks 1-5. Your Java Application should have an interactive Graphical User Interface (GUI) based on the JFrame class using SWING GUI components. You should also write a report, as specified in this document, demonstrating your conceptual knowledge.

Problem

Hotels are the heart of tourism industry in any nation. Hotels are booked using a software application with an easy to use, and intuitive user interface. NEXT hotel is a major hotel business group and they have a hotel in Brisbane. The IT manager of the Brisbane operation has kindly agreed to support a project to develop a prototype for a new Hotel Booking System (HBS) which will be further developed into a webservice. The support for the full development of the system depends on the quality of the prototype.

Therefore, you are invited to design and develop an initial prototype for the HBS to enable a user to enter the customer details and booking details and save the data to a file. You will be developing the Java application with a GUI.

The users accessing the HBS should able to:
1. Enter the Customer details
2. Enter room booking details
3. Save the entered data to a file.
The hotel room details including rates, and payment processing is outside the scope of this work.

Design Guidelines
You can use the following guidelines in your modelling and GUI design.
Data Structures
You may follow the class design given below. You should read the specification carefully and design the classes using UML class diagrams and include the attributes with correct data types and all the methods, clearly indicating public or private. Clarify your doubts during the design stage so that your implementation can be less error prone and faster to complete.
i) Customer class
This is a generic class and has the attributes: title
first name last name email address phone
This class should have:
a parameterised constructor, accessor, mutator methods, and a toString() method.
ii) DomesticCustomer class
This class extends the Customer class.
In addition to the inherited attributes, this class has: Driver License Number
Expiry Date
This class should have a parameterised constructor, copy constructor, a default constructor, accessor, mutator methods, and a toString() method.
iii) InternationalCustomer class
This class extends the Customer class.
In addition to the inherited attributes, this class has: Passport Number
Country Expiry Date
This class should have a parameterised constructor, copy constructor, a default constructor, accessor, mutator methods, and a toString() method.
Hints and tips: Refer to Week 3 Lecture and tutorial solutions, and the Textbook chapter on Polymorphism for the correct implementation of polymorphic behaviour.
iv) Booking class
This class has the attributes: Check in
Check out

Number of guests Room type Room rate
This class also includes a Customer object for one of the guests who does the booking. The check in and check out are dates in which the guests will be checking in checking out of the rooms. Use Date type variable for storing the check in and check out dates.
The room type is a value which specifies the type of room and amenities in that room. You can use the list of room types and rates obtained from hotel management and these are: Superior_Queen: $250, Breakfast_Queen: $270, Deluxe_King: $240, Deluxe_Twin: $240.
v) DataFile class
This class will have a parameterised constructor that takes the filename to be created.
Include a method to write data a file named ‘bookingData.csv' using the values from and ArrayList<> of Bookings.
Use necessary file handing exceptions.
vi) BookingGUI class
This class should have all the GUI components as described under the Graphical User Interface Design section. This class:
1. has the main method and starts the application
2. initialize the GUI components
3. stores the user entered values in temporary variables, and creates necessary objects
4. stores the data file name and creates the DataFile object
5. invokes the DataFile class method to write the objects to the DataFile
Graphical User Interface
The application should have a GUI for user interactions. This GUI should have the necessary components to enable the user to execute all the functions as provided in Section 2.1 above. You may use the guidelines provided below for your GUI design and implementation. Variations to the provided guidelines are acceptable as long as it meets the user requirements.
i) Input Panel
The top panel can have Labels to display attribute names and TextFields to enable the user to enter the attribute values for the Customer and Booking classes. Use RadioButtons for user to select between Domestic Customer and International Customer. Once the user chooses one of the options, the required Labels and TextFields should be displayed for entering data. Use a ComboBox to display and choose the Room types. You may arrange Labels and TextFields in horizontal or vertical alignments. You can use
ii) Display Panel
This panel can have a TextArea to display welcome message to the User and other messages during the program execution. Once the user clicks the ‘Save Data' Button, display the saved Booking details.
iii) Button Panel
This Panel can have a label "Command Buttons" and can contain the required Command Buttons of ‘Enter Data', ‘Save Data', ‘Clear Display' and ‘Quit'.

A full GUI design diagram is not given to encourage you to design user friendly interface. The functions of the three Command Buttons are given below.
Display a welcome message when the program starts.

Enter Data Button

The user enters the Domestic or International Customer details and the Booking details and clicks the ‘Save Button'.

You should validate the check in and check out entries so that:

a) the check-out date should be later than the check in date.

b) both the dates should be later than the current date. (assuming bookings are done and confirmed at least 12 hours prior to check in.)
If there are errors, appropriate error message should be displayed.

All the TextFields should be completed. Display appropriate error messages if the user hasn't entered value in any of the TextFields.
If entries are correct display a message informing booking confirmation. The Booing and Customer details should be added to an ArrayList of Booking.

You should also display appropriate error messages to help the user to complete the entry.
Save Data Button
User clicks this Button to write the Array List of Bookings to the Data file. The data should be written, separating values by commas.

Clear Display Button
Clicking on the "Clear Display" button should clear all contents from the TextArea, the TextFields, and the data structures storing the previous entries. The ComboBox will still have the list of Room types.
Quit
The "Quit" button should allow the user to exit from the application.

3. Coding

Include necessary accessor, mutator methods, constructors, and toString() method for each class. Also, follow good coding practices, using meaningful names, camel case notation for naming, constants as necessary, and include meaningful comments. You can use NetBeans to develop your application. Follow the coding standards given in the Unit website.

4. Report
You should submit a report containing the following details.

1. UML class diagrams for the classes

2. Test plan showing input data, expected results, and actual results

Attachment:- Data Structures and Algorithms.rar

Reference no: EM132290332

Questions Cloud

What will be the market price of the good : A) How much output will each firm produce in the Cournot equilibrium? B) What will be the market price of the good?
Outline the process of job evaluation : Define job evaluation. Outline the process of job evaluation. Use visual aids and graphics to enhance your presentation.
List the two things the government : Define fiscal policy and list the two things the government does that fall under fiscal policy.
Issue of central importance to strategic planning : The topic of Ethics continues to increase as an issue of central importance to strategic planning.
Develop and implement software solutions : COIT20256 - Data Structures and Algorithms - Central Queensland University - analyse the given problem, model, and design the required data structures using UML
What are the goals of the fiscal policy : Why is Fiscal Policy so hard to make? Who makes it? What are the goals of the Fiscal Policy?
Log run average total cost curve : As an airline executive of a company that uses both Airbus and Dreamliner planes, thinking in the long run and using the log run average total cost curve
Sells high quality lower priced sunglasses : Imagine that your group owns a South African company that manufacturers and sells high quality lower priced sunglasses through retail stores in 15 countries.
How many checkouts did the old system provide in shift : A grocery chain is considering the installation of a set of 4 self-checkout lanes. How many checkouts did the old system provide in a shift?

Reviews

len2290332

4/22/2019 2:22:01 AM

You should submit the following source code files and word document using the Moodle online submission system. (Note: the file names/class names could be changed to meaningful names). Please do not zip the whole project folder and submit it. • Customer.java – Source code for the Customer class • DomesticCustomer.java– Source code for the DomesticCustomer class • InternationalCustomer.java – Source code for the InternationalCustomer class • Booking.java • BookingGUI.java – Source code for the BookingGUI class • DataFile.java – Source code for DataFile class • Report.doc – Your word document containing the report.

Write a Review

JAVA Programming Questions & Answers

  A program called invoice that will prompt the user for items

write a program called invoice that will prompt the user for items on and invoice and then print the total of the invoice

  Write the java program using the recursion

Write the following Java program using the recursion form and For the obtained program, give a figure explaining the execution of the expression: meth(4)

  Java program which demonstrates cellular automata

Using the internet, locate a Java program (or Java applet) which demonstrates "Cellular Automata", in particular "the Game of Life".

  Pacman style game with clara

The major assignment involves producing a Pacman style game with Clara using the Greenfoot files that are given to you.

  Java socket hello i need to this assignment done in net

hello i need to this assignment done in net beans . and i want comment in code .also screen shots of running program

  Draw all tree patterns corresponding to the instruction

Draw all tree patterns corresponding to this instruction (and its special cases). Pick one of the bigger patterns and show how to write a Java if-statement to match it, with the Tree representation used for the MiniJava compiler.

  Write a payroll applicaion in java

The program should allow the user to enter information for any number of employees in this manner.

  Write the lines of code inside the main method

Write the lines of code inside the main() method to print the bibliographic entry as outlined by the flowchart in Figure 2-74.

  Explain java-oriented microprocessors presented by sun

Research the latest Java-oriented microprocessors presented by Sun. In what ways are they optimized to implement Java programs?

  Develop a graphical user interface

COSC1295 Advanced Programming - Develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment

  Overview in this assignment you are provided with an

overview in this assignment you are provided with an interface that contains a generic type.you are asked to create two

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