Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hey! Good afternoon + If you cannot solve this program please, kindly don't solve it :) However, This my project in java 2, please provide
Hey! Good afternoon
+ If you cannot solve this program please, kindly don't solve it :)
However, This my project in java 2, please provide the code on text and screenshot :) + provide the classes separately from each class :)
Thanks, good luck!
Overview: Registration department in each branch of Arab Open University is responsible for offering sections for all courses to students. In this TMA, it is required to help the head of registration department implement application to keep track of registration data for the current semester. Requirements: After a quick meeting with the head of registration department, you got the following information: It is required to store the whole data (all offered sections in the current semester) in one collection Each section has a number, course code (e.g. M251) and an instructor to teach it. In addition, it contains many students with flexibility of adding and removing students within a given limit for the maximum number of students who could register in the same section (where this limit is fixed and unified for all sections). Furthermore, there are other attributes (add at least 2 attributes from your choice). Of course, section number is unique for each course. Each instructor has a unique ID, a name and other attributes (add at least 3 attributes from your choice). Each student has a unique ID, a name and other attributes (add at least 4 attributes from your choice). Moreover, you have been informed that the following operations happen frequently: Offering a new section Adding a student to a specified section Removing a student from a specified section Retrieving the average number of students per section of a specified course Displaying all sections offered in the current semester in a format similar to the following: courseCode1: secNo1 secNo2 secNo3 ... courseCode2: secNo1 secNo2 secNo3 ... where courses and sections are sorted in ascending order Saving all the registration data into a text file Analysis: Q1: There are common attributes and methods between students and instructors. What is the best choice for designing and writing the codes of these two classes? Explain your answer. Q2: Draw a simple class diagram showing only relationships between the classes. Implementation: After analysing the given requirements, implement the required application: with Object Oriented Programming style following the rules of good programming style (e.g. adding comments, etc.) using only the material covered in M251 (and its prerequisites) Hints: For each class, it is required to implement constructors, setters, getters, toString() method, and any other necessary method If the user tries to do an operation that could violate the state of objects, the operation should be ignored and the application should display an error message (e.g. adding a student to the same section twice, etc.) Checking equality of any 2 objects should be done via the equals() method There is a class that will do the main job of registration department as follows: o It has one collection to store the whole data (all sections) o It has static methods, one for each operation happens frequently o For each adding or removing operation, a message should be displayed to the user to explain the status of the operation (i.e. if it was successful or not) Testing: After implementing the required classes, design and implement a testing class to test them as follows: Create at least 7 sections of at least 3 courses and add them to the collection that stores the whole data then add and drop some students from them. Try to violate the state of the objects and show that your code prevents all violations. Show that the other operations that happen frequently are working fine At the end, all the registration data should be saved into a text file and this file should be saved automatically inside the folder contains your Java project Marks distribution: 24 marks for the essential classes 30 marks for the class represents Section 24 marks for the class that stores the whole registration data 11 marks for the testing class 5 marks for the following the given instructions 6 marks for answering the two questions Overview: Registration department in each branch of Arab Open University is responsible for offering sections for all courses to students. In this TMA, it is required to help the head of registration department implement application to keep track of registration data for the current semester. Requirements: After a quick meeting with the head of registration department, you got the following information: It is required to store the whole data (all offered sections in the current semester) in one collection Each section has a number, course code (e.g. M251) and an instructor to teach it. In addition, it contains many students with flexibility of adding and removing students within a given limit for the maximum number of students who could register in the same section (where this limit is fixed and unified for all sections). Furthermore, there are other attributes (add at least 2 attributes from your choice). Of course, section number is unique for each course. Each instructor has a unique ID, a name and other attributes (add at least 3 attributes from your choice). Each student has a unique ID, a name and other attributes (add at least 4 attributes from your choice). Moreover, you have been informed that the following operations happen frequently: Offering a new section Adding a student to a specified section Removing a student from a specified section Retrieving the average number of students per section of a specified course Displaying all sections offered in the current semester in a format similar to the following: courseCode1: secNo1 secNo2 secNo3 ... courseCode2: secNo1 secNo2 secNo3 ... where courses and sections are sorted in ascending order Saving all the registration data into a text file Analysis: Q1: There are common attributes and methods between students and instructors. What is the best choice for designing and writing the codes of these two classes? Explain your answer. Q2: Draw a simple class diagram showing only relationships between the classes. Implementation: After analysing the given requirements, implement the required application: with Object Oriented Programming style following the rules of good programming style (e.g. adding comments, etc.) using only the material covered in M251 (and its prerequisites) Hints: For each class, it is required to implement constructors, setters, getters, toString() method, and any other necessary method If the user tries to do an operation that could violate the state of objects, the operation should be ignored and the application should display an error message (e.g. adding a student to the same section twice, etc.) Checking equality of any 2 objects should be done via the equals() method There is a class that will do the main job of registration department as follows: o It has one collection to store the whole data (all sections) o It has static methods, one for each operation happens frequently o For each adding or removing operation, a message should be displayed to the user to explain the status of the operation (i.e. if it was successful or not) Testing: After implementing the required classes, design and implement a testing class to test them as follows: Create at least 7 sections of at least 3 courses and add them to the collection that stores the whole data then add and drop some students from them. Try to violate the state of the objects and show that your code prevents all violations. Show that the other operations that happen frequently are working fine At the end, all the registration data should be saved into a text file and this file should be saved automatically inside the folder contains your Java project Marks distribution: 24 marks for the essential classes 30 marks for the class represents Section 24 marks for the class that stores the whole registration data 11 marks for the testing class 5 marks for the following the given instructions 6 marks for answering the two questions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started