Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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 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 =154=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 00 principle that allowed you to reuse your original Card code and extend it to become an Uno deck TABK 5. Also, in your elass lovel comenent of your Card cass. describe one festure of the code that will allow your Card class to be rewned or extended in ariothar program. 6. Submit your completed class diagrams (screen shot) and yoer source cede for the Card class (with comments for Tasks 4 and 5 ) in a alp tile to the DropBox. Submissions not in zip formut will not be evaluuled. 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 anotherprogram. 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

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

Recommended Textbook for

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago