Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[3 marks] Read the following short passage of the text to identify the class candidates as well as their possible relationships - composition or aggregation
[3 marks] Read the following short passage of the text to identify the class candidates as well as their possible relationships - composition or aggregation that might exist among them: Assume that we defined a teaching course with attributes: name, dept, year, semester ("Fall", S- "Summer", "Winter", use String or enumeration), course description (a paragraph of text). Also, the course is associated with the following: - professor with his office number, and a phone extension (note that one course could be instructed by only one instructor, and one instructor may teach several courses at the same time), - student may be enrolled to the course (note that course may have up to 30 students), 1) First you have to design a UML class diagram. You may choose to use aggregation/composition - where necessary. 2) [2 marks] Java implementation: Implement all required classes in Java, according to UML class diagram. Create a test class (class that contains main method) with one course instructed by one specific professor, and add a list of students enrolled into this course. Note: at the end, the program should calculate a course average student's mark for particular course. You are expected to add all programming comments in your code. Lastly, you have to design a UML object diagram. [1 marks] Reflections document - in PDF or DOC format. Prepare a separate document to reflect on how you have completed Assignment. Reflection is nothing but your personal commentary on your own contribution and coding habits. 3.1 Add a picture of your UML class diagram (from [1]) and UML object diagram, with brief description. 3.2 Add screen shots from your final demo (project run), copied from the console "as is" 3.3 Add your reflection includes some of the following: - Significant types of errors/warnings you faced when coding programs - Whether you were able to correct these errors/warnings quickly - What debugging strategy you used, e.g., searched the Web for a solution, contacted tutor, solved by self, used a debugging tool, talked to a friend, . . . - Resources that you referred to (online resources, book references, etc) - Other comments that reflect on the process of your sonal learning to program You do not need to include all those points! As you can see, the reflection component is quite fluid and personal
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