Question: 3 . Lab activities Exercise 1 : A directory has a name and permissions to read, execute, and write. 1 . Propose a class model
Lab activities
Exercise :
A directory has a name and permissions to read, execute, and write.
Propose a class model of this directory.
A file has a name and permissions to read, execute, and write.
Propose a class model of this file.
Make these two concepts coexist on the same diagram by proposing a generalization.
A directory can contain directories and files.
Propose a modeling of these relationships.
Files and directories have a method for erasing and renaming. A directory also has a method for accessing the parent directory, a method for listing its content and a method for accessing one of its subdirectories by specifying its name.
Complete your class diagram with the necessary access methods.
Exercise :
This case study is about a simplified flight reservation system. Interviews with business experts summarized their knowledge of the field as follows:
Airlines offer different flights.
A flight can be opened on reservation or closed by order of the company.
A customer can make one or more reservations on one or more flights for one or more passengers.
A reservation necessarily concerns a single flight and a single passenger.
A reservation can be canceled or confirmed.
A flight to an airport of departure and an airport of arrival.
A flight has a day and a time of departure and a day and an hour of arrival
Propose a class diagram modeling this set of knowledge
Exercise :
Library System
The Informatics students and Faculty use the Library System. The Library contains Books and Journals. Books can be issued to both the Students and Faculty. Journals can only be issued to the Faculty. The Librarian can only issue books and Journals. The deputyLibrarian is Incharge of receiving the Returned Books and Journals. Each student is provided with three Library cards for using the facilities of the Library. Students can be issued only three books on their available cards at a time. On the issue of the books the Librarian specifies a date on which the students are expected to return the book.
In case they are unable to do so they will be charged with a fine of Rs per day. The Accountant is responsible for receiving the fine for overdue books.
Each Faculty is provided with a Library member ID Faculties can be issued a maximum
of five books at a time. The issue of Journals and Books to the Faculties is also performed
in the same manner. Faculties are not charged with any fine.
Draw the Class Diagram for the problem statement :
Identify the entity classes.
To understand the relationships between these classes.
Identify dependency, hierarchy and associativity between these classes.
Project activities
Draw the class diagram of your project:
Identify the entity classes.
To understand the relationships between these classes.
Identify dependency, hierarchy and associativity between these classes.
Class Analysis Document
The class analysis document should contain the following information:
A brief description on what does one understand by Class Analysis
A brief description on types of Analysis Classes.
Identify all the Analysis Classes for your problem statement and
briefly describe their purpose.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
