Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me with this code? It would be much appreciated if the UML was done using Dia! Assignment 3 tests your basic

Can someone please help me with this code? It would be much appreciated if the UML was done using Dia!

Assignment 3 tests your basic knowledge of classes and objects (Chapter 3). Design a class called YourNamePet (the class file should be called YourNamePet.java; replace YourName with your actual name), with the following exact1 fields:

image text in transcribedimage text in transcribed

ASSIGNMENT 3 Assignment 3 tests your basic knowledge of classes and objects (Chapter 3). Design a class called YourNamePet (the class file should be called YourNamePet.java; replace YourName with your actual name), with the following exact 1 fields: The YourNamePet class should also have the following exact 2 (name and functionality) methods: Once you have designed the class, design a program/project/driver class (the program/project/driver class file should be called YourNameAssignment3.java; replace YourName with your actual name) that creates an object of the YourNamePet class and prompt the user to enter (in a descriptive/user-friendly way 3 ) the name, type, age, sound, weight, and color, of his or her pet. This data should be stored in the object using the corresponding Set methods. Use the object's accessor Get methods to retrieve the data from the object (the pet's name, type, age, weight, and color) and confirm them by printing them out. You will need to add the class YourNamePet to the YourNameAssignmen3 project and add your code to the project/driver class main method. Create the UML diagram for the 2 classes using either Dia or Microsoft Word ad add it to a Microsoft Word document called YourNameAssignment3-UML.docx. If you use Dia, please paste a screenshot of your diagram in the document. Create a Microsoft Word document called YourNameAssignment3-Screenshots.docx (replace YourName with your actual name) that contains screenshots of the editor window showing the entire JAVA source code for both YourNameAssignment3 and YourNamePet classes and the entire output. If the entire class JAVA source code or the output does not fit in one screenshot or the screenshots cannot be easily read, create multiple screenshots and add multiple screenshots to the screenshot document. Submit YourNameAssiqnment3.java, YourNamePet.java, YourNameAssiqnment3-UML.docx, and YourNameAssiqnment3-Screenshots.docx on eCampus under the Assignment 3. Do not archive the files (e.g. no RAR, ZIP, etc.) or submit other types/formats of files (e.g. no CLASS, PDF, etc.). Follow the Assignment Code Convention. 1 Use the exact names (spelling, caps). You are not going to earn any credit if the classes do not contain your actual name and the fields do not have the exact/precise names. 2 Use the exact names (spelling, caps). You are not going to earn any credit if the classes do not contain your actual name and the methods do not have the exact/precise names and functionality. 3 For example, a message like "Please enter the age of your pet " or "Please enter an integral number representing the age of your pet: " would allow the user to know what they should enter in a user-friendly way

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

What is the Net working capital?

Answered: 1 week ago

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago