Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

do every thing separate and please do everything the question asks for ( write it in paper or somethig it is not clear when it

do every thing separate and please do everything the question asks for
(write it in paper or somethig it is not clear when it is written with computer)
UML Case Study: modelling the static and dynamic views of a system.
Objectives of the UML exercise:
- To model the static views of a system.
- Modelling the dynamic views of a system
- Master the general concepts of the UML language
- Define the elements of use case diagrams, class diagram and sequence diagrams
Exercise 1: 4 marks
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
Exercise 2: 4 marks
A company has set up software to track its products. All the company's staff can consult the system, either to check that a product exists, or to browse freely through the information. Any consultation must be preceded by a light authentication in which the person specifies their name and department. Engineers can carry out several updating operations for products (adding, removing, modifying). These operations must be preceded by a more thorough authentication, in which the engineer specifies his or her name and department and enters a password, which is verified by contacting the personnel management system. All operations (consultation and updating) are recorded in an access log and can optionally be accompanied by a printout of the documents for the director.
Question: Give a use case diagram to model the above problem
Exercise 3: 2 marks
In a shop, the purchasing procedure is as follows: the customer enters the shop, browses the items, asking for information or trying them out. If there are enough items in stock, they pick them up, go to the checkout and pay for their purchases using any means of payment: cash, bank card or cheque. They may receive a discount on their purchases.
Question: Give the sequence diagram for the "pay for items at cash desk" use case.

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

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

ISBN: 3030302776, 978-3030302771

Students also viewed these Databases questions

Question

Why did it enter into these partnerships?

Answered: 1 week ago

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago