Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Youve been hired to create a software system for the Awesome Animal Clinic! They would like to keep track of their animal patients. Here are

Youve been hired to create a software system for the Awesome Animal Clinic! They would like to keep track of their animal patients. Here are some attributes of the pets that they would like to track:

Name

Age

Weight

Type (dog, cat, lizard, etc.)

Breed

Create a class that keeps track of the attributes above for pet records at the animal clinic. Decide what instance variables are needed and their data types. Make sure you use int, double, and String data types. Make the instance variables private.

Create 2 constructors, one with no parameters and one with many parameters to initialize all the instance variables.

Create Accessor (get) methods for each of the instance variables.

Create a toString() method that returns all the information in a pet record.

In the main method below, create 3 pet objects and call their constructors, accessor methods, and toString methods to test all of your methods.

Make sure you use good commenting!

please i really need this discover why my code is not running and fix my 3 errors.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Type idoa eat, Erarti, elo) Brecid 1. Create a class that keeps track of the attrcutes abowe for pet records at the arimol clinic. Decide nhat inttance wariabies are necded and their data fypes Maid sure you use int, scuble, and Saing data fypes. Mabe the instance variables privatie. 2. Create 2 construeters, ane with no facarteters and one with many paramestrs to initiafice all the inatance variables 3. Create Aecesser (get) mechseds for exch od the instance variables. 4. Create a tostrival foethod that returns al the irformation in a pet record. 5. In the main meshad beloe, oreate 3 pet objects and eal their constructors, accessor metheds, and tostring rethods to test all of arour methodi. 6. Mave sute you use good commentingl Crestin a Pet cass that weeps track of the name, ape, weight, type of anmw, and tieed for fecends at an animal clieic. Onine fta lit nummer lvey TosterCivis.jaya Fet tiant itimplate cement 1 periner taint flais fit Yf kers track of the make, ape, ofipet, thit of asieet, art bient of the bet arivare sering nane arihate lat age? arivase doble veight. arivase string typel arivate string treedi Atring fate o heg TesterClass.java CONSOLE SHELL (b) D Run Online (1) E summer lvey TesterClass.java CONSOLE SHELL CONSOLE SHELL

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

More Books

Students also viewed these Databases questions

Question

Describe the three types of data flows.

Answered: 1 week ago

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

Influences on Nonverbal Communication?

Answered: 1 week ago