Question: SYST 17796 EXERCISE 2 This exercise is to be completed individually during class time. Students are allowed to discuss the exercise and provide assistance to
SYST 17796 EXERCISE 2 This exercise is to be completed individually during class time. Students are allowed to discuss the exercise and provide assistance to one another, but each student is responsible for their own final product. Students not present in class are not eligible for credit unless they are eligible for a specific accommodation which is worked out between the instructor and that student according to class/departmental/college policies. Overview This Exercise will allow students to demonstrate their understanding of the following critical concepts from Week 4-5 (Chapter 2 of Text): UML class diagrams Principles of OO Design Credit/Necessary Information The tasks below will convert your original Exercise 2 Card code that modelled a deck of standard playing cards into a program that is ready to model a deck of Uno cards. For our game, we will model the Uno deck as follows: 4 colours: red, yellow, green, blue Ranks 0-9 for each colour + skip, reverse, draw two, draw four and wildcard for each colour = (10 + 5) for each colour So in total = 15x4 = 60 cards (note: this is less than in the actual game) TASK 1. If you need a base for your code, use the starter code that is available on Slate. 2. Edit the Card class so that the Cards could now be used as Uno cards as described above. 3. Create a UML class diagram showing your new Card class and one for each enum you have used, in Visual Paradigm. 4. In the class-level comments for your Card class, describe one OO principle that allowed you to reuse your original Card code and extend it to become an Uno deck TASK 5. Also, in your class level comment of your Card class, describe one feature of the code that will allow your Card class to be reused or extended in another program. 6. Submit your completed class diagrams (screen shot) and your source code for the Card class (with comments for Tasks 4 and 5) in a .zip file to the DropBox. Submissions not in zip format will not be evaluated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
