Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

correct the image according to this: A hotel is made up of at least two rooms. Each room has a bathroom: shower or bathtub. A

correct the image according to this:
A hotel is made up of at least two rooms. Each room has a bathroom: shower or bathtub. A hotel accommodates people. It can employ staff and must be headed by a director. We only know the first and last names of the employees, directors and occupants.
Some people are children and others are adults (using children to work is prohibited). A hotel has the following characteristics: an address, a number of rooms and a category.
A room is characterized by the number and beds it contains, its price and its number.
We want to be able to know who is occupying which room on what date. For each day of the year, we want to be able to calculate the rent for each room based on its price and occupancy (the rent is zero if the room is unoccupied). The sum of these rents makes it possible to calculate the hotel's turnover between two dates.
Question: Give a class diagram to model the hotel problem
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

Do you think physicians should have unions? Why or why not?

Answered: 1 week ago