Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer in java and the output should be same as the sample out. please answer the question ASAP Sample output A school management system

please answer in java and the output should be same as the sample out. please answer the question ASAP image text in transcribed
image text in transcribed
Sample output
image text in transcribed
image text in transcribed
image text in transcribed
A school management system contains three classes, i.e., the Staff class, the Subject class and the School class (Primary class) The Staff class is used to keep and maintain the information of a staff. Its field shall contain the basic information of a staff, such as the ID, name, gender, title, phone, email, position and office location. The staff class shall provide the constructor, mutators and accessors to create, access and modify the Staff object. The Subject class is used to keep and maintain a subject's information. Its field shall contain at least the subject name, code, session and year, coordinator (a Staff object), and lectures and labs information. The Subject class shall provide the constructor, the mutators and the accessors to modify the subject information The School class is used to keep and maintain the information of a school. Its field shall contain some basic information of the school, such as the school name, the head of school (a Staff object), the school manager (a Staff object), other academic staff (a Staff ArrayList), and all subjects offered by the school (a Subject ArrayList). School class shall contain at least one constructor for creating the School objects. The School class shall also contain necessary mutators and accessors to modify and access the field. More important, it shall contain methods to modify the staff list and the subject list. Task 1: Class design with UML class diagrams (2 marks) Based on the above description, you shall complete the design of the school management system with the three classes and draw UML class diagrams (using UMLet or other professional tools, NO hand drawing) to represent your design. You shall use the correct notations for UML class diagram and clearly show the field, methods and associations between the three classes. Task 2: Implementation (2 marks) Implement your school management system by using Java. The implementation of all classes shall consistent with your UML diagrams. For the testing purpose, please using the following information and procedure in the main() method. You can make up other information if it is required in your design 3 staff: 1. Mrs. Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Email: amy @university.edu.au Location: 3.001 Position: Lecturer 2. Dr. Bob Brow ID: 100002 Gender: Male Phone: 4221-1112 Email:bob@university.edu.au Localtion: 3.002 Position: Senior Lecturer 3. Miss Cindy Ma ID: 100002 Gender: Female Phone: 4221-1113 Email:cindy@university.edu.au Localtion: 3.003 Position: Professional Staff 4. Prof. David Hintz ID: 100004 Phone: 4221-1114 Email:davida university.edu.au Location: 3.004 Position: Professor Two subjects: 1. CSITIT Name: Programming Fundamentals Session and Year. Autumn, 2021 Campus: Country Credit: 6 Lab numbers: 4 Coordinator: Amy Bell 2. CSIT121 Name: Object Oriented Design and Programming Session and Year. Autumn, 2021 Campus: City Credit: 6 Lab numbers: 3 Coordinator: Bob Brow One school School Name: School of Computer Science Head of School: Prof. David Hintz School Manager: Miss Cindy Ma Staff List: Amy Bell, Bob Brown, Cindy Ma, David Hintz Subject List: CSITII, CSIT121 1. Create the four staff objects, 2. Create two subject objects and add the coordinator from the staff objects created above: 3. Create one school object and add the Hos, the school manager, the staff list and the subject list from the staff and subject objects created above; 4. Print the school and subject information (see below examples, 5. Remove Bob Brown from the school and reassigned Prof. David Hintz as the coordinator of CSIT:21: 6. Print the school and subject information again (must reflect the above update) Your program outputs shall be exactly same as mine unless you have different subject and staff information Before the changes: School Name: School of Computer Science Head of School Prof. David Hintz School Manager. Miss Cindy Ma Stall List Prof. David Hintz ID: 100004 Gender: Male Phone: 4221-1114 Location: 3.004 Position: Professor Miss Cindy Ma ID 100003 Gender: Female Phone: 4221-1113 Location: 3.003 Position: Professional Start Mrs Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Location: 3.001 Position Lecturer Dr. Bob Brow ID 100002 Gender: Male Phone: 4221-1112 Location: 3.002 Position: Senior Lecturer Subject List Code: CSIT111 Name: Programming Fundamentals Session and Year Autumn 2021 Campus Country Credit: 6 Lab numbers: 4 Coordinator Amy Bail Code: CSIT121 Name: Object Oriented Design and Programming Session and Year Autumn 2021 Campus City Credit: 6 Lab number: 3 Coordinator Bob Brow After the changes School Name: School of Computer Science Head of School. Prof. David Hintz School Manager: Mos Cindy Me Staff List Prot. David Hint ID: 100004 Gender: Male Phone: 4221-1114 Location: 3.004 Position: Professor Miss Cindy Ma ID: 100003 Gender: Female Phone: 4221-1113 Location: 3.003 Position: Professional Staf Mrs Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Location: 3.001 Position Lecturer Subject List Code: CSIT111 Name: Programming Fundamentals Session and Year: Autumn 2021 Campus. Country Credit: 6 Lab numbers: 4 Coordinator: Amy Bell Code: CSIT121 Name: Object Oriented Design and Programming Session and Year. Autumn 2021 Campus: City Credit: 6 Lab numbers: 3 Coordinator: David Hintz A school management system contains three classes, i.e., the Staff class, the Subject class and the School class (Primary class) The Staff class is used to keep and maintain the information of a staff. Its field shall contain the basic information of a staff, such as the ID, name, gender, title, phone, email, position and office location. The staff class shall provide the constructor, mutators and accessors to create, access and modify the Staff object. The Subject class is used to keep and maintain a subject's information. Its field shall contain at least the subject name, code, session and year, coordinator (a Staff object), and lectures and labs information. The Subject class shall provide the constructor, the mutators and the accessors to modify the subject information The School class is used to keep and maintain the information of a school. Its field shall contain some basic information of the school, such as the school name, the head of school (a Staff object), the school manager (a Staff object), other academic staff (a Staff ArrayList), and all subjects offered by the school (a Subject ArrayList). School class shall contain at least one constructor for creating the School objects. The School class shall also contain necessary mutators and accessors to modify and access the field. More important, it shall contain methods to modify the staff list and the subject list. Task 1: Class design with UML class diagrams (2 marks) Based on the above description, you shall complete the design of the school management system with the three classes and draw UML class diagrams (using UMLet or other professional tools, NO hand drawing) to represent your design. You shall use the correct notations for UML class diagram and clearly show the field, methods and associations between the three classes. Task 2: Implementation (2 marks) Implement your school management system by using Java. The implementation of all classes shall consistent with your UML diagrams. For the testing purpose, please using the following information and procedure in the main() method. You can make up other information if it is required in your design 3 staff: 1. Mrs. Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Email: amy @university.edu.au Location: 3.001 Position: Lecturer 2. Dr. Bob Brow ID: 100002 Gender: Male Phone: 4221-1112 Email:bob@university.edu.au Localtion: 3.002 Position: Senior Lecturer 3. Miss Cindy Ma ID: 100002 Gender: Female Phone: 4221-1113 Email:cindy@university.edu.au Localtion: 3.003 Position: Professional Staff 4. Prof. David Hintz ID: 100004 Phone: 4221-1114 Email:davida university.edu.au Location: 3.004 Position: Professor Two subjects: 1. CSITIT Name: Programming Fundamentals Session and Year. Autumn, 2021 Campus: Country Credit: 6 Lab numbers: 4 Coordinator: Amy Bell 2. CSIT121 Name: Object Oriented Design and Programming Session and Year. Autumn, 2021 Campus: City Credit: 6 Lab numbers: 3 Coordinator: Bob Brow One school School Name: School of Computer Science Head of School: Prof. David Hintz School Manager: Miss Cindy Ma Staff List: Amy Bell, Bob Brown, Cindy Ma, David Hintz Subject List: CSITII, CSIT121 1. Create the four staff objects, 2. Create two subject objects and add the coordinator from the staff objects created above: 3. Create one school object and add the Hos, the school manager, the staff list and the subject list from the staff and subject objects created above; 4. Print the school and subject information (see below examples, 5. Remove Bob Brown from the school and reassigned Prof. David Hintz as the coordinator of CSIT:21: 6. Print the school and subject information again (must reflect the above update) Your program outputs shall be exactly same as mine unless you have different subject and staff information Before the changes: School Name: School of Computer Science Head of School Prof. David Hintz School Manager. Miss Cindy Ma Stall List Prof. David Hintz ID: 100004 Gender: Male Phone: 4221-1114 Location: 3.004 Position: Professor Miss Cindy Ma ID 100003 Gender: Female Phone: 4221-1113 Location: 3.003 Position: Professional Start Mrs Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Location: 3.001 Position Lecturer Dr. Bob Brow ID 100002 Gender: Male Phone: 4221-1112 Location: 3.002 Position: Senior Lecturer Subject List Code: CSIT111 Name: Programming Fundamentals Session and Year Autumn 2021 Campus Country Credit: 6 Lab numbers: 4 Coordinator Amy Bail Code: CSIT121 Name: Object Oriented Design and Programming Session and Year Autumn 2021 Campus City Credit: 6 Lab number: 3 Coordinator Bob Brow After the changes School Name: School of Computer Science Head of School. Prof. David Hintz School Manager: Mos Cindy Me Staff List Prot. David Hint ID: 100004 Gender: Male Phone: 4221-1114 Location: 3.004 Position: Professor Miss Cindy Ma ID: 100003 Gender: Female Phone: 4221-1113 Location: 3.003 Position: Professional Staf Mrs Amy Bell ID: 100001 Gender: Female Phone: 4221-1111 Location: 3.001 Position Lecturer Subject List Code: CSIT111 Name: Programming Fundamentals Session and Year: Autumn 2021 Campus. Country Credit: 6 Lab numbers: 4 Coordinator: Amy Bell Code: CSIT121 Name: Object Oriented Design and Programming Session and Year. Autumn 2021 Campus: City Credit: 6 Lab numbers: 3 Coordinator: David Hintz

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

Students also viewed these Databases questions