Question

In: Computer Science

Use CRC to design information system for a school. Use following classes: Professor, Class, School, Department,...

Use CRC to design information system for a school. Use following classes: Professor, Class, School, Department, and Student, Identify the main responsibilities and collaborators for each class. Then draw a UML class diagram showing the relationships (and multiplicities) between the classes.

Solutions

Expert Solution

School

Responsibilities:

Teach children

Provide education

Provide Infrastructure

Collaborator:

Department

Department

Responsibility:

Assign subject teachers

Assign class teachers

Allocate the number of student per class

Assign professors to classes

Collaborator:

Class

Class

Responsibilities:

Space for teaching and learning

Blackboard

Professor

Furniture

Collaborator:

Professor

Professor

Responsibilities:

Teaching

Testing

Grading

Collaborator:

Student

Student

Responsibilities:

Learning

Discussions

Attend Exams

Collaborator:

Class

Class Diagram:

1. In the above diagram, the multiplicities 1 indicate that it is only one, corresponding to a particular scenario. For example: when we are considering a school, then it is only one, whereas all others like departments, classes, students, and professors can be many.

2. So, 1..* indicates that the school consists of more than one of those class members.


Related Solutions

Create CRC card, class diagram and an object diagram for the school students' healthcare system that...
Create CRC card, class diagram and an object diagram for the school students' healthcare system that may have the entities represent a system for a student_patient billing system. Include only the attributes that would be appropriate for this context. Student_Patient (age, name, hobbies, blood type, occupation, insurance carrier, address, phone) Student_Insurance carrier (name, number of patients on plan, address, contact name, phone) University_Doctor (specialty, provider identification number, golf handicap, age, phone, name)
Question 35 A professor in the Accountancy Department of a business school indicated that there is...
Question 35 A professor in the Accountancy Department of a business school indicated that there is much more variability in the final exam scores of students taking the introductory accounting course as a requirement than for students taking the course as part of their major. Random samples of 16 non-accounting majors and 10 accounting majors taken from the professor's class roster in his large lecture and the following results are computed based on the final exam scores: Non-Accounting Major (1)...
Information: Consider a banking system with 3 classes:  BankAccount, CheckingAccount, and SavingsAccount, that you are to design...
Information: Consider a banking system with 3 classes:  BankAccount, CheckingAccount, and SavingsAccount, that you are to design and write. Have CheckingAccount and SavingsAccount inherit from BankAccount. In BankAccount, you should include an account number, an account balance, a deposit method, a toString method, and an abstract withdraw method. Since deposits work the same way in both child classes, make sure they cannot override it. The constructor should only take an initial deposit and generate a random 5 digit account number. The...
Given the following specification, design a class diagram using PlantUML. To design the class diagram, use...
Given the following specification, design a class diagram using PlantUML. To design the class diagram, use abstract, static, package, namespace, association, and generalization on PlantUML Specification: A school has a principal, many students, and many teachers. Each of these persons has a name, birth date, and may borrow and return books. The book class must contain a title, abstract, and when it is available. Teachers and the principal are both paid a salary. A school has many playgrounds and rooms....
Design You will need to have at least four classes: a parent class, a child class,...
Design You will need to have at least four classes: a parent class, a child class, a component class, and an unrelated class. The component object can be included as a field in any of the other three classes. Think about what each of the classes will represent. What added or modified methods will the child class have? What added fields will the child class have? Where does the component belong? How will the unrelated class interact with the others?...
What are CRC cards and use-case scenarios used for in object-oriented analysis and design?
What are CRC cards and use-case scenarios used for in object-oriented analysis and design?
C++ PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName...
C++ PersonData and CustomerData classes Design a class named PersonData with the following member variables: lastName firstName address city state zip phone Write the appropriate accessor and mutator functions for these member variables. Next, design a class named CustomerData, which is derived from the PersonData class. The CustomerData class should have the following member variables: customerNumber mailingList The customerNumber variable will be used to hold a unique integer for each customer. The mailingList variable should be a bool. It will...
Design a diabetes information packet for consumers. First, use a formal information system approach andthen use...
Design a diabetes information packet for consumers. First, use a formal information system approach andthen use communication technologies as the basis of your design. Describe your design process for bothapproaches and submit the pamphlets you created. Describe how the two differ.
Design a class named Employee. The class should keep the following information in fields: ·         Employee...
Design a class named Employee. The class should keep the following information in fields: ·         Employee name ·         Employee number in the format XXX–L, where each X is a digit within the range 0–9 and the L is a letter within the range A–M. ·         Hire date Write one or more constructors and the appropriate accessor and mutator methods for the class. Next, write a class named ProductionWorker that inherits from the Employee class. The ProductionWorker class should have fields...
Design a class named Employee. The class should keep the following information in fields: ·         Employee...
Design a class named Employee. The class should keep the following information in fields: ·         Employee name ·         Employee number in the format XXX–L, where each X is a digit within the range 0–9 and the L is a letter within the range A–M. ·         Hire date Write one or more constructors and the appropriate accessor and mutator methods for the class. Next, write a class named ProductionWorker that inherits from the Employee class. The ProductionWorker class should have fields...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT