Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

do only the parameterized constructor, accessor methods, reserve a seat and cancel a seat method( in java) do not include anything for aplication class The

image text in transcribed
do only the parameterized constructor, accessor methods, reserve a seat and cancel a seat method( in java)
do not include anything for aplication class
The Problem: A small airline has decided to create a new automated system for reservations. You have been hired to write the program for this system. Customers will be allowed to book a reservation, cancel an existing reservation and request a seating chart. The airline has several planes, cach with a different number of seats but all planes only have 1 seat per row. Due to COVID the airline is advertising that passengers in each class of service (first and coach) will be capped at 50% capacity and passengers will be assigned seats to ensure social distancing. Specifications: All classes will be part of a project called proj/sp21. To implement the reservation system you will need to design and implement three classes: an application class (Project Sava), a Seat class, and an Airplane class. The specifications for each are outlined below. These classes should all be a part of a package called projlsp21. The specifications for each are outlined below. Seat Class: An instance of the Seat class should store the type of seat (first or coach), whether the seat is empty or occupied, and the seat number. The Seat class should provide the following behaviors: A parameterized constructor -- the constructor will accept values for the seat number and the type of seat and store this information appropriately. Initially, the seat should be marked as empty. Accessor methods for the seat type, seat number and whether or not it is empty/occupied. A method to reserve a seat. A method to cancel a reservation. A toString method which returns a string containing the seat number, type and whether or not it is occupied

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

Perception in a Diverse World Cognition: Perceiving Ourselves

Answered: 1 week ago

Question

=+working on a micro-multinational?

Answered: 1 week ago

Question

=+j Identify the challenges of training an international workforce.

Answered: 1 week ago