Question: I need step by step instruction to make this class and also required codes. How to create a class, create a driver class and where

I need step by step instruction to make this class and also required codes. How to create a class, create a driver class and where I need to input the codes. My IDE is NetBeans. Please help me. Thank You.

I need step by step instruction to make this class and also

Design a class called Pet (the class file should be called Pet.java), with the following fields Example of values Spot, Fluf "Dog", "Rabbit", "Guinea pig", "Turtle" 1, 9 2.5 16.5, 3.0 Field Description Name The Name field holds the name of the pet Type | The Type field holds the type of animal that the pet is "cat", Bird", "Fish", Age The Age field holds the age of the pet (in years HeightThe Height field holds the height of the pet Weight The Weight field holds the weight of the pet Legs The Legs field holds the number of legs of the pet The Pet class should also have the following methods Method Description SetName The setName method stores a value in the Name field GetName The getName method returns the value of the Name field SetType The setType method stores a value in the Type field GefType The getType method returns the value of the Type field SetAge GetAge The getAge method returns the value of the Age field SetHeight The setHeight method stores a value in the Height field GetHeight The getHeight method returns the value of the Height field SetWeight The setWeight method stores a value in the Weight field GetWeight The getWeight method returns the value of the Weight field SetLegs GetLegs The getLegs method returns the value of the Legs field PrintStoryThe PrintStory method should display/output to the console the following message The setAge method stores a value in the Age field The setLegs method stores a value in the Legs field (inserting values for the class field into the appropriate location) There once was a TYPE named NAME who lived in Dallas, Texas. NAME was a LEGS- legged pet. In 2017, when it was AGE years old, NAME was HEIGHT feet tall and WEIGHT pounds. NAME was a happy TYPE and had long and happy life Once you have designed the class, design a program/project/driver class (the program/project/driver class file should be called [YourNamelAssignment1; replace [YourName] with your actual name) that creates an object of the class Pet and prompt the user to enter (in a descriptive/user-friendly way2) the name, type, age, height, weight, and number of legs, of his or her pet. This data should be stored in the object. Use the object's accessor methods to retrieve the data from the object (the pet's name, type, age, and weight) and confirm it (display in on the screen, in a user-friendly way). You wl need to add the class Pet to the [YourName]Assignment1 project and add your code to the project/driver class main method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!