Highlights
Objectives:(COMP231)
1. Create Classes and Objects.
2. Process Array of objects.
3. To use the String class to process immutable strings.
Task1: Passenger Class
A Passenger class has the following attributes:
And the following behaviours:
1. Draw the UML diagram for the Passenger class.
2. Implement the class
Task2: A320 Flight Seat Reservation System
In this task, you need to create a ragged array of Passengers with a length of 31 rows. The first 3 rows are reserved for the Business class seats as shown in the figure. The rows from 6 to 31 are reserved for the Economy class seats. Rows 4 and 5 has no seats. The seat number is consist of one character (A to F) and a number (1 - 31) (e.g. F17).
Create a driver class that has the following:
At the beginning of execution, create and initialize the array to null (i.e. flight is empty).
In an infinite loop show the following menu options:
1) to reserve a new seat (business or economy) for a new passenger (if there is an empty seat)
2) to display the passenger information for a specific seat (if the seat is not empty)
3) to search for a passenger by first or last name
4) to search for passenger by passport number.
5) to print a list of the passengers and there seat numbers.
6) to exit execution
Adequately implement the previous options
This COMP231: Engineering Assignment has been solved by our Engineering Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.