View the step-by-step solution to:


I'm looking for java help

need program to check-in pets

I already submitted half the program but

didn't get a good grade on it

it is important to analyze your client's software requirements and the design documentation from the Supporting Materials section. Specifically, review the Pet BAG specification document and the UML Class diagram, paying close attention to the class hierarchy, attributes, and behaviors.

create the Pet class based on the UML Class diagram. The Pet class must meet all the specifications from the class diagram including the following:

  • All attributes with appropriate data structures
  • At least one constructor method
  • Accessors and mutators for all attributes

implement either the Cat or Dog Java class in the . Your class must meet all the specifications from the UML Class diagram. Be sure to include the following in your Cat or Dog class:

  • All attributes with appropriate data structures
  • The Cat and Dog classes both have their own attributes (instance variables). For example, the Cat class has the catSpaceNbr attribute. In addition to the dog- and cat-specific attributes, they both inherit from the Pet class. This means the Dog and Cat classes will also have the seven attributes from the Pet class.
  • At least one constructor method
  • Accessors and mutators for all attributes
  • Each attribute should have a corresponding "set" and "get" method. For example, there will be a getPetType() and setPetType() method for the petType attribute. Make sure to repeat this for all attributes.

UML Class list


- petType

- petName

- petAge

- dogSpace

- catSpace

- daysStay

- amountDue

+ checkIn()

+ checkout()

+ getPet()

+ createPet()

+ updatePet()


+ dogSpaceNbr

+ dogWeight

+ grooming

+ getGrooming()

+ setGrooming()

+ getDogWeight()

+ setDogWeight()


+ catSpaceNbr

Arrow pointed from table labeled Dog to table labeled Pet; arrow pointed from table labeled Cat to table labeled Pet

When you are done implementing the Pet class, refer back to the Pet BAG specification document and select either the pet check-in or check-out method.

Pet Check-In First, we determine whether the pet is a dog or a cat. Next, we determine if boarding space is available for the pet. There are currently 30 spaces for dogs and 12 spaces for cats. We would like the ability to update these settings as needed. If boarding space is available, we identify whether the pet is a new or returning visitor. If the pet has stayed with us before, we are seeking the ability to update information as needed. If the pet is a new visitor, we would like the opportunity to collect all the appropriate information. Additionally, we would like the ability to gather information on the length of stay for each pet and if grooming services are required. Grooming services are only offered for dogs that stay at Pet BAG for two or more days. No grooming services are offered for cats. Our final step is to assign the pet to a space.

Top Answer

class Pet { private String petType; private String petName; private int petAge; private int dogSpace; private int catSpace;... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question