Develop a GUI that will work with the objects you created

Assignment Help Computer Engineering
Reference no: EM131685623

Project 2 - Project Description: Vehicle Hiring System (VHS)

The operations manager of a vehicle hiring company is currently using a paper based (manual) system to manage and keep track of the short term vehicle reservations made by registered customers. The company hires cars and light vans to its registered customers on a short term basis (daily) and due to the inefficiency of this system, the operations manager often faces problems in serving customers due to overbooking of hiring vehicles, inability to provide customers with the requested vehicle on time and inability to track vehicles that are not returned on time.

To overcome this issue, you are required to develop a console based application that will allow the operations manager to record and maintain reservations for hiring vehicles (currently there are only two types of vehicles, cars and light vans, later there can be more types).

The operations manager has provided a registered customer list and hiring vehicle list in text files.

The system should have a simple menu as below.

1. Show available vehicles

2. Reserve a vehicle for a customer

3. Show hires for a customer

4. Show hires for a vehicle

5. Show not returned (overdue) vehicles

6. Return vehicle from hire

7. Exit

The current manual system operates as follows.

1. Show available vehicles

Depending on the customer request all available cars or vans are shown with all details.

2. Reserve a vehicle for a customer

Having shown the list of available vehicles the customer requests to reserve his/ her preferred vehicle. The manager will check if the vehicle is available during the requested time and if so a vehicle reservation is made on behalf of the customer.

3. Show hires for a customer

The operations manager looks at the vehicle reservation sheets for each vehicle to check if a given customer id is present in those sheets and creates a report of vehicle hiring records for that particular customer.

4. Show hires for a vehicle

The operations manager looks at the reservation sheets for a particular vehicle (using the vehicle id) and creates a report of hiring records for that vehicle.

5. Show not returned (overdue) vehicles

To check for not returned vehicles, the operations manager looks at the vehicle reservation sheets, checks for vehicles not returned on time (returned date/time is empty) and creates a report including the reservation details and customer details of such overdue vehicles.

6. Return vehicle from hire

When the customer id, the vehicle id and hired date and time is given, the manager finds the correct hire from the list of reservations and records the returned date and time. Finally, the total charge for the hire is calculated (including late return penalty if applicable) and shown to the customer.

You may start your design with the following recommendations.

  • You must include Company, Customer, Vehicle, Reservation objects in your design
  • Currently there are two vehicle types, car and van. You must have objects to represent them.
  • The company has a name, a registered customer list and a hiring vehicle list
  • A customer has a customer id, name and category (premium, standard and budget).
  • Each vehicle has a unique registration number, model name, year of registration, fuel type and the availability for hire status (For example, when a vehicle is under repair the status is false)
  • In addition to the common fields a car has engine capacity
  • In addition to the common fields a van has a maximum load capacity
  • A vehicle may have zero or more reservations
  • Multiple reservations can be placed for the same customer
  • A reservation is associated with a vehicle and a customer
  • Each vehicle reservation also maintains the vehicle pickup date, pickup time, pickup location, reservation period (number of hours), returned date and returned time (recorded once the vehicle is returned).
  • A reservation can be made up to 30 days in advance or just 5 hours before the hire. However premium and standard customers can make reservations just 1 hour before the hire.
  • Reservations can be made between 4.00 am to 12 midnight.
  • Since the vehicles are available for short term hires, reservation period cannot extend 15 hours. However premium customers are allowed to make reservations up to 20 hrs.
  • Reservations must be displayed sorted by pickup date and pick up time
  • Late vehicle returns of less than 1 hour will not be charged. Any vehicle returns exceeding one hour grace period will be charged by the hourly rate of the vehicle (For example, if late by 4 hrs, late penalty = 4 * hourly rate of the vehicle)
  • The hourly rate for a car is $10.
  • The hourly rate for a van is $15.

Start with the above but revise and improve your design accordingly to improve usability.

Project 3 - Project Description: Vehicle Hiring System (VHS) - GUI

You are required to develop a GUI that will work with the objects you created in project 2 and provide the same level of functionality.

The Start class must be modified, so that the user can start the GUI or the Console Application, both must work with same set of business objects (one set only). Both the GUI and the console application must work well and changes made in one mode will be persisted (at exit of that mode) and appear when the other mode is run.

The GUI does not required to be fancy. It should be easy to use and organised.

The purpose of your task is to allow you to demonstrate skills mastered in the following areas.

Skills you are required to demonstrate

  • Use of appropriate ActionListeners to capture events and respond properly
  • Ability creating a GUI that is easy to use
  • Use of JFrame
  • Use of JPanel
  • Use of JDialog
  • Use of Layout Managers and any other required GUI components you wish (you must NOT use a GUI development IDE to generate these)
  • Exceptions and error handling (use of custom exception objects and other Java built in exceptions)
  • Achievement of all business goals/ requirements

Qualities

  • GUI has the same level of functionality as the console application
  • It is easy for the user to understand how to achieve each task.
  • It is easy to understand what data must be entered
  • Messages are displayed when the user makes an error
  • The look of your design must be unique (Not shared with anyone else)

Rules

  • There must still be only one set of classes that represent the business logic.
  • The same classes are used by the GUI and by the console Application.
  • When the program starts, the user should be allowed to select console mode or GUI mode.
  • All changes made in one mode should be visible when the second mode is used.
  • Only one mode will be used at a time.
  • Strictly you must NOT use a GUI development IDE to implement the GUI

HELP

  • Nil provided
  • You must research and write this project your-self.

Starting point

  • Fix any errors identified in project 2, make any improvements to meet functional requirements and improve usability
  • Draw detailed sequence diagrams for the use cases, including GUI objects (use appropriate UML notations discussed in class)
  • Improve code to manage errors effectively by using exceptions

This is to be done by:

  • Writing your own exception class
  • Identifying which business logic methods may cause your code to fail
  • Throwing exceptions from the business logic methods with good error messages
  • Logging errors to file (error log) where required
  • Capturing errors at the user interface and taking corrective action
  • Keeping the user well informed about any problems.

Design - I will do this as we have to follow the guidelines

  • Structure chart for the GUI
  • Sequence diagram for one use case (of your preference) including important GUI objects (if more than one diagram is included the first one in the document will be marked)

Code:

  • The solution must be a Blue J Project.

You need to hand in a hard copy and a soft copy.

Attachment:- Assignment Files.rar

Reference no: EM131685623

Questions Cloud

What are the primary hardships farm workers commonly face : What are the primary hardships farm workers commonly face, How different is our behavior towards immigrant farm workers currently working on large farms
Create an effective professional identity : Create an effective professional identity and explain why professional networks are essential for professional development.include scholarly sources.
What is an independent variable in a scientific experiment : What is an independent variable in a scientific experiment, the number of organisms of different species in an ecosystem
Create a code of ethics for you and your family : Create a code of ethics for you and your family, as well as to explain the strategies and thought processes that went into developing the code.
Develop a GUI that will work with the objects you created : You are required to develop a GUI that will work with the objects you created in project 2 and provide the same level of functionality
Describe the new start-up company that you have created : Describe the new start-up company that you have created. Include in your description the nature of your company, its mission and vision, your company's product.
Review case regarding separation of ownership and control : Regarding separation of ownership and control, A major change in most corporate policies requires that a majority of stock shares that are voted favor it.
Examine two purposes that price analysis serves to a company : Examine at least two purposes that price analysis serves to a company like VectorCal and to its product line. Support your answer with two examples of companies
Discuss less energy goes toward warming the soil : use the seasonal pattern of average monthly precipitation at Maun to explain why proportionally less energy goes toward warming the soil

Reviews

len1685623

10/21/2017 5:15:14 AM

Giving the background of what exactly it is first. We had project 2 and now we have project 3 based on project 2. In project 3 we have to develop a GUI for what we developed in project 2. I want to fix my project two and also want to get my project 3 developed. As for project 2, I have attached the specifications in BlueJ IDE. Its compulsory for us to develop in BlueJ IDE I am also attaching project 3 specification doc. Only minor fixes will be fine as we need to complete the project 3 as that's the priority. The deadline is 24th, . Is it possible to get by 24th? And also let me know the cost of it. Awaiting your quote. This java project is to be developed in BlueJ and not other IDEs.

len1685623

10/21/2017 5:15:07 AM

This is to be done by: Writing your own exception class, Identifying which business logic methods may cause your code to fail, Throwing exceptions from the business logic methods with good error messages. Logging errors to file (error log) where required. Capturing errors at the user interface and taking corrective action and Keeping the user well informed about any problems. You need to hand in a hard copy and a soft copy.

len1685623

10/21/2017 5:15:01 AM

Your design must include and effectively demonstrate a good understanding of inheritance. This is to be done by Including a Vehicle superclass, Including subtypes for Car and Van, Taking advantage of the inheritance relationship to reduce code duplication, Using polymorphism effectively. You are required to save all object data between each execution to files. This is to be done by - Writing object data to a comma(“,”) delimited file before closing down the application. Reading object data from files and building all objects before the user interface is displayed. Handle errors that can be caused by file reading/ writing. Demonstrate how to implement an interface by making reservations sortable.

len1685623

10/21/2017 5:14:53 AM

Hard copy: You need to hand in the printed report (hard copy) by the due date mentioned. The documentation has to be word processed and include a cover page, marking scheme, design documents and source code. (Note: Print the source code with font size 10pt. and do not print the Javadoc html files). Soft copy: The soft copy should include the source code (a BlueJ Project) and should be submitted to ESP by the due date.

len1685623

10/21/2017 5:14:47 AM

GUI Implementation - Appropriate implementation of GUI, including: Use of appropriate ActionListeners to capture events and respond properly- Use of JFrame, Use of JPanel, Use of JDialog/ JOptionPane, Use of Layout Managers, Use of any other required GUI components and Achievement of all business goals/ requirements. Product Quality - Overall working quality product in line with design: Easy to use, working quality GUI, Input to GUI does not crash the application, Using only one set of classes to represent the business logic (used by both GUI and Console app), Allowing the user to select console mode or GUI mode at the start. All changes made to objects in one mode is visible when the second mode is used.

Write a Review

Computer Engineering Questions & Answers

  Problem related to sampling and nonsampling risk

Sampling and Nonsampling Risk. Arthur Castle is interested in identifying the average number of family members living in each household in his neighborhood.

  Why server side computing has been a more affordable

The Cloud, that is synonymous with the internet, became a common phrase which infers that everybody can keep files and records in a trusted site. So what is the difference between uploading a file to a file server and uploading a file to a cloud.

  What is autonomic relational database management system

In regards to Autonomic RDBMS, is it important to utilize a user-centered design (UCD) approach when designing a database for a small to medium size company. Why or why not.

  If 32 equally spaced steps are used instead of 16 what

consider an analog signal which can range from -4v to 4v. the input signal is sampled at 20000 samples per second. the

  Write down the object code for the following program

Write down the object code for the following program, assuming that it is not necessary to force extended addressing.

  Manage the threat, the risk, the disaster

Does one manage an imminent disaster or respond to it? Take a tornado, for example. Is this an imminent disaster waiting to happen? Do you manage the threat, the risk, the disaster or all three.

  Assume that past data indicates that one fp translates into

1. a function based analysis for a software system for managing security at home safehome system v5.4 is given below

  What are prospect trends for healthcare informatics

What are prospect trends for healthcare informatics.

  Your boss has just heard about some nefarious computer

your boss has just heard about some nefarious computer activities called ping sweeps and port scans. he wants to know

  Manage and secure windows infrastructure to satisfy bluesky

to improve efficiency in its current infrastructure blue sky systems decided to upgrade their current infrastructure of

  Discuss aspects of hearing that are important in ergonomics

Discuss those aspects of hearing that are important in ergonomics; include the issues of normal background sounds, emergency notices, masking, and Signal Detection Theory.

  Questiona manufacturer of exercise equipment for health

questiona manufacturer of exercise equipment for health clubs is interested in comparing usage of equipment as in

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