Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hotel System in Java Class Person People with first and last names. Class Building Every building has year of construction and number of floors. Class

Hotel System in Java

Class Person

People with first and last names.

Class Building

Every building has year of construction and number of floors.

Class Reservation

Reservation Number, date, the person, and the price per night

Check availability

Class Room

Includes Room type, price per night, room size, floor number, room number, and status

5 constructors, room number, price, size, room type, and floor.

Reserve, for start date, end date, and people

A status method, state of the room.

Class Hotel

Includes a hotel name, rate, owner, and rooms.

Getter method, getRooms

addOwner method which adds one owner to the hotels owners list.

addRoom method.

Testing Class

Create a hotel, with at least two owners and four rooms

Show the hotel and rooms information

Show state of the rooms

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

Step: 3

blur-text-image

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions