Question: Question 4 ( 5 points ) : The objective of this question is to practice object oriented design and creating UML class diagrams in a

Question 4(5 points):
The objective of this question is to practice object oriented design and creating UML class diagrams in a problem you are familiar with.
Your Tasks
In the previous question, you wrote a procedural program to calculate your final grade for CMPT270. For this question, you will take that procedural program and restructure its design into an object- oriented system. For this assignment you will be creating a UML class diagram showing your design. In the next assignment, you will be actually building this system.
Start with your solution to the previous question. Currently, the program is written in a proce- dural way; all of the variables and functionality is written in a single method in a single class. Go through your code and identify a reasonable way of grouping your data into classes.
Next, identify the methods for each class that are needed to get/set the data.
Finally, determine the interactions between the classes in your system. Which objects are con- tained by other classes? Which classes need to talk to another class? Is there an inheritance
structure (it is not required, but you may use inheritance if it makes sense).
Create a UML class diagram showing the outcome of the previous three steps. You only need to submit the diagram, the previous steps are used to help structure the process of creating the
class diagram.
Evaluation
1 mark : for classes
1 mark : for attributes
1 mark : for methods
2 marks : structure (correct arrows between classes, correct formatting of classes)
Provided Files
There are no files provided by instructor for this question, but you will be using your solution to Question 3 to inform your process.
Files to Submit
Your submission should include a file called gradeCalculator.pdf with your finished class diagram.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!