Question

In: Computer Science

Draw the class diagram of University; University (name and location etc) is maintaining the student affairs,...

Draw the class diagram of University; University (name and location etc) is maintaining the student affairs, faculty or non-faculty record, student record, hostel management, route management etc. University has a chancellor and different departments. Faculty and non-faculty members are the part of each department. Minimum 2 or 3 attributes and operations of each class. Show the cardinality or multiplicity constraints as well.

Solutions

Expert Solution

Explanation :

University Class Diagram has total 11 classes defined :

  1. University
  2. Departments
  3. Phy
  4. Maths
  5. Subject
  6. Division
  7. Class
  8. Teachers
  9. Students
  10. Hostel
  11. TestPaper

You can see fields and methods designed for each class in the below image.

  • University has one to many relationship with Departments, Teachers, Students.
  • Teachers has Many to one relationship with students.
  • Every Department (Phy, Maths) has Many Subject, Division, Class.
  • Many students has Hostel in University campus.
  • Teachers and Students both are connected to TestPaper class.

Class Diagram for University :


Related Solutions

draw a uml diagram for a class
draw a uml diagram for a class
Draw a diagram of a genome replication site in E. coli showing the location of the...
Draw a diagram of a genome replication site in E. coli showing the location of the following components: Helicase; single stranded DNA binding protein; primer; DNA polymerase III; Okasaki fragment; leading strand and lagging strand.
Draw whole class diagram that represent Candy online shopping website. The class diagram should consist of...
Draw whole class diagram that represent Candy online shopping website. The class diagram should consist of following: 1) Inventory Management System 2) Delivery Management System 3) Production Management System 4) Order Management System 5) Payment Management System Note: The website offers special candy that with customer name.
At a university, each student is assigned a system login name, which the student uses to...
At a university, each student is assigned a system login name, which the student uses to log into the campus computer system. Write the code that generates system login names for students. You will use the following algorithm to generate a login name: Get the first three characters of the student’s first name. (If the first name is less than three characters in length, use the entire first name.) Get the first three characters of the student’s last name. (If...
A Java question. You are given a Student class. A Student has a name and an...
A Java question. You are given a Student class. A Student has a name and an ArrayList of grades (Doubles) as instance variables. Write a class named Classroom which manages Student objects. You will provide the following: 1. public Classroom() a no-argument constructor. 2. public void add(Student s) adds the student to this Classroom (to an ArrayList 3. public String hasAverageGreaterThan(double target) gets the name of the first student in the Classroom who has an average greater than the target...
Create a class called Student which stores • the name of the student • the grade...
Create a class called Student which stores • the name of the student • the grade of the student • Write a main method that asks the user for the name of the input file and the name of the output file. Main should open the input file for reading . It should read in the first and last name of each student into the Student’s name field. It should read the grade into the grade field. • Calculate the...
IN JAVA ECLIPSE PLEASE The xxx_Student class A Student has a: – Name - the name...
IN JAVA ECLIPSE PLEASE The xxx_Student class A Student has a: – Name - the name consists of the First and Last name separated by a space. – Student Id – a whole number automatically assigned in the student class – Student id numbers start at 100. The numbers are assigned using a static variable in the Student class • Include all instance variables • Getters and setters for instance variables • A static variable used to assign the student...
Draw a UML diagram that describes a class that will be used to describe a product...
Draw a UML diagram that describes a class that will be used to describe a product for sale on Glamazon.com. The product has a name, a description, a price, ratings by many customers (1 to 5 stars), and a group of customer comments. New products have no ratings or comments by customers, but do have a name, description and price. The price can be changed and more customer ratings and comments can be added. A global average rating of all...
Draw the class diagram in draw.io software for an Airline Reservation system.
Draw the class diagram in draw.io software for an Airline Reservation system.
Draw a class diagram for your monopoly. You can use any visual tools to draw the...
Draw a class diagram for your monopoly. You can use any visual tools to draw the diagram and you need to utilize different relationships between classes, define the attributes and operations of classes. Nothing too complex please. Just the basics.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT