Lab Activities in Java A. Defining Multiple Classes We want to develop a minimal, simple object-oriented application for a university. A university has three major entities: Students, Faculties and Courses. • First, we have to identify the relationships among them. • The following relationship diagram shows the relationships among Student, Course and Faculty class. 8.40 0.3 Student Course Faculty Figure 1: Relationship among Student, Course and Faculty Your job is to define the above-mentioned classes as per the specification mentioned below and then write a Main/Driver class that demonstrates the functionalities of these classes. Page 1 Student - studentld: int |- studentName: String |- studentCGPA: double Course - courseld: String - course Title: String - credit: double - studentList: Student [] - numberOfStudents: int - faculty: Faculty Faculty - facultyld: int - facultyName: String - facultyPosition: String + Faculty() + Faculty(facultyld, facultyName, facultyPosition) + toString(): String + Course() + Course(courseld, courseTitle, credit) + toString(): String + addStudent(Student): void + dropStudent(studentld): void + addFaculty(Faculty): void + dropFaculty(): void + printStudentList(): void + Student() + Student(studentld, studentName, studentCGPA) + toString(): String
Lab Activities in Java A. Defining Multiple Classes We want to develop a minimal, simple object-oriented application for a university. A university has three major entities: Students, Faculties and Courses. • First, we have to identify the relationships among them. • The following relationship diagram shows the relationships among Student, Course and Faculty class. 8.40 0.3 Student Course Faculty Figure 1: Relationship among Student, Course and Faculty Your job is to define the above-mentioned classes as per the specification mentioned below and then write a Main/Driver class that demonstrates the functionalities of these classes. Page 1 Student - studentld: int |- studentName: String |- studentCGPA: double Course - courseld: String - course Title: String - credit: double - studentList: Student [] - numberOfStudents: int - faculty: Faculty Faculty - facultyld: int - facultyName: String - facultyPosition: String + Faculty() + Faculty(facultyld, facultyName, facultyPosition) + toString(): String + Course() + Course(courseld, courseTitle, credit) + toString(): String + addStudent(Student): void + dropStudent(studentld): void + addFaculty(Faculty): void + dropFaculty(): void + printStudentList(): void + Student() + Student(studentld, studentName, studentCGPA) + toString(): String
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
I want solve of this question in Java program.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 7 steps with 6 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education