Q Search the web.. New Tab Type here to search O Converter Graded Work - CSIT210 - Introd x A https://ccbcmd-bb.blackboard.com/webapps/blackboard/content/listContent.jsp?course_id=_373082_1&conte. * Sign in Attached Files: D UML Template.docx (22.428 KB) Read: Chapter 5 Instructions: Submit your completed UML class diagram and Java file. Part I: Create a UML diagram for this assignment Partll: Create a program that implements a class called Dog that contains instance data that represent the dog's name and age. • define the Dog constructor to accept and initialize instance data. • create a method to compute and return the age of the dog in "person-years" (note: dog age in person-years is seven times a dog's age). Include a toString method that returns a one-line description of the dog • Create a driver class called Kennel, whose main method instantiated and updates several Dog objects. Submit a screenshot of your output, completed UML, and the java file for a grade.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I would be happier if you could help me with this homework. The other screenshot is the document give at the beginning of the instruction.

thank you.

**Graded Work – CSIT210**

URL: [https://ccbcmd-bb.blackboard.com/webapps/blackboard/content/listContent.jsp?course_id=_373082_1&conte...](https://ccbcmd-bb.blackboard.com/webapps/blackboard/content/listContent.jsp?course_id=_373082_1&conte...)

**Attached Files:**  
- UML Template.docx (22.428 KB)

---

**Read:** Chapter 5

**Instructions:** Submit your completed UML class diagram and Java file.

**Part I:** Create a UML diagram for this assignment.

**Part II:** Create a program that implements a class called **Dog** that contains instance data representing the dog's name and age.

- Define the Dog constructor to accept and initialize instance data.
- Create a method to compute and return the age of the dog in "person-years" *(note: dog age in person-years is seven times a dog's age)*.
- Include a `toString` method that returns a one-line description of the dog.
- Create a driver class called **Kennel**, whose main method instantiates and updates several Dog objects.

**Submit a screenshot of your output, completed UML, and the .java file for a grade.**

---

**How to take a screenshot on Windows 10 with the PrtScn key:**

1. **Press PrtScn.** This copies the entire screen to the clipboard.
2. **Press Alt + PrtScn.** This copies the active window to the clipboard, which you can paste into another program.
3. **Press the Windows key + Shift + S.**
4. **Press the Windows key + PrtScn.**

**How to take a screenshot on Mac:**

- Press and hold these three keys together: Shift, Command, and 4.
- Drag the crosshair to select the area of the screen to capture.
- To move the selection, press and hold the Space bar while dragging.
- To cancel taking the screenshot, press the Esc (Escape) key.

---

**Additional Information:**
No graphs or diagrams are included in the image.
Transcribed Image Text:**Graded Work – CSIT210** URL: [https://ccbcmd-bb.blackboard.com/webapps/blackboard/content/listContent.jsp?course_id=_373082_1&conte...](https://ccbcmd-bb.blackboard.com/webapps/blackboard/content/listContent.jsp?course_id=_373082_1&conte...) **Attached Files:** - UML Template.docx (22.428 KB) --- **Read:** Chapter 5 **Instructions:** Submit your completed UML class diagram and Java file. **Part I:** Create a UML diagram for this assignment. **Part II:** Create a program that implements a class called **Dog** that contains instance data representing the dog's name and age. - Define the Dog constructor to accept and initialize instance data. - Create a method to compute and return the age of the dog in "person-years" *(note: dog age in person-years is seven times a dog's age)*. - Include a `toString` method that returns a one-line description of the dog. - Create a driver class called **Kennel**, whose main method instantiates and updates several Dog objects. **Submit a screenshot of your output, completed UML, and the .java file for a grade.** --- **How to take a screenshot on Windows 10 with the PrtScn key:** 1. **Press PrtScn.** This copies the entire screen to the clipboard. 2. **Press Alt + PrtScn.** This copies the active window to the clipboard, which you can paste into another program. 3. **Press the Windows key + Shift + S.** 4. **Press the Windows key + PrtScn.** **How to take a screenshot on Mac:** - Press and hold these three keys together: Shift, Command, and 4. - Drag the crosshair to select the area of the screen to capture. - To move the selection, press and hold the Space bar while dragging. - To cancel taking the screenshot, press the Esc (Escape) key. --- **Additional Information:** No graphs or diagrams are included in the image.
**Instructions**: Create a UML diagram for a Dog class. You can get some useful information from your book. Review Chapter 5, Fig. 179-180.

| **Dog**                     |
|-----------------------------|
| List the instance variables in the constructor. |
| List the methods in the class.                    |

The second row of the UML diagram lists the instance variables in the constructor. For example:

- `-name: String`
  - `-` indicates private
  - `name` is the variable name
  - `String` is the data type of name

The third row of the diagram lists the methods in the class. For example:

- `+setName(): String`
  - `+` indicates public
  - `setName` is the method name
  - `()` represents that no arguments are sent to the method
  - `String` is the return data type
Transcribed Image Text:**Instructions**: Create a UML diagram for a Dog class. You can get some useful information from your book. Review Chapter 5, Fig. 179-180. | **Dog** | |-----------------------------| | List the instance variables in the constructor. | | List the methods in the class. | The second row of the UML diagram lists the instance variables in the constructor. For example: - `-name: String` - `-` indicates private - `name` is the variable name - `String` is the data type of name The third row of the diagram lists the methods in the class. For example: - `+setName(): String` - `+` indicates public - `setName` is the method name - `()` represents that no arguments are sent to the method - `String` is the return data type
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Database connectivity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education