Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use StarUML and finish all three exercises. Thanks! Exercise 1: LA is building a system for all the persons on campus. Each person has

Please use StarUML and finish all three exercises. Thanks!

image text in transcribed

Exercise 1: LA is building a system for all the persons on campus. Each person has a mobile phone number. Persons can be students or teachers or security guards. Each student has a student ID, a dormitory number, a major, and a home address. Each teacher has an office number, a staff ID number, and an office phone number. Each security guard has a staff ID number. Some teachers can be mentors. For a mentor, we need to know the email address.

Exercise 2: 1. A college has two types of students: undergraduate students and graduate students. 2. A graduate student can be a TA. 3. The college also has two types of teachers: lecturers and professors. One TA can help one lecturer or one professor. One lecturer can have at most 2 TAs, one professor can have 4 TAs. A college can have many students and many professors, but each student has only one college and each professor has only one college.

Exercise 3: The LA library has many books. The library has many users (represented as an interface) which are of two kinds: students or teachers. There are two types of students: undergraduate students and graduate students. Students have a student ID number and teachers have a staff ID number. Books have an ISBN number and a status indicating whether the book is in the library or has been borrowed. The library has the following rules: 1. All users can search for books 2. All users can borrow books. 3. All users can return books. 4. Undergraduate students can borrow at most 10 books. 5. Graduate students can borrow at most 20 books. 6. Teachers who worked in LA for more than 5 years can borrow at most 30 books. In addition, if you are an undergraduate student or a graduate student or a teacher then you know which books you have, but from a book it is not possible to find out which undergraduate student or graduate student or teacher has borrowed it.

Copy-paste each of the three exercises below into your report. Find the clues of classes, attributes, and methods in the descriptions of the exercises, and highlight them with different kinds of underlines or colors. For each exercise, put the corresponding class diagram (as a picture) under the highlighted description of the exercise

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

What are the determinants of cash cycle ? Explain

Answered: 1 week ago