Object-Oriented Programming

Program Specifications
A veterinarian friend of yours has expressed interest in having program made to help them manage
their clinic. Being that you have some programming skill, you have offered to create a pilot program for
the veterinarian as a proof of concept with the hopes that you will be contracted to create the clinic’s
entire system. Currently, the clinic sees a lot of dogs and cats that require one of two specific
medications: Acepromazine and Carprofen. As a pilot project, you will create a program that will help
track the administration of these two drugs to the pets that are brought in.
The program build will be developed in two parts:
Part A – Class and Object Implementation
Pet Class
Design a class named Pet that meets the following requirements:
• A string property named Name for the pet (default value is “Spot”).
o The mutator for Name will check if the new value contains at least one nonwhitespace
character otherwise it will throw an exception.
• An int property named Age in years for the pet (default value is 1).
o The mutator for Age will check if the new value is one (1) or greater before using the
new value otherwise it will throw an exception.
• A double property named Weight in pounds for the pet (default value is 5).
o The mutator for Weight will check if the new value is five (5) or greater before using the
new value otherwise it will throw an exception.
• A string property named Type that indicates if the type of pet is a dog or a cat (default is D for
Dog).
o The mutator for Type will check if the new value is D or C before using the new value
otherwise it will throw an exception.
o The accessor for Type will return the string literal Dog if the type is D otherwise it will
return the string literal Cat.

Sample Solution

proficient and compelling results. John Kotter clarifies that a few powers for change are more noteworthy monetary coordination, development and log jam, innovation, and fall of communist nations and their reorientation toward industrialist economies (Palmer, 2006).

Several change management theories depict the way toward building up an arranged way to deal with the progressions occurred in an association. The principal display is John Kotter’s 8 stages, which was distributed in 1995 in the Harvard Business Review. Initially, setting up the requirement for direness alludes to performing market examination by deciding the issues and openings. The second step, guaranteeing there is a ground-breaking change gathering to direct the change can be performed by making group structures to help drive the change and ensuring the groups have adequate capacity to manage the change. Thirdly, building up a dream can be done by giving concentration to change. At that point, the vision must be conveyed by utilizing different channels to continually impart this vision. The following stage is enabling the staff by evacuating authoritative approaches and structures that restrain the accomplishment of the vision. When this is done, the association must engage the staffs which helps bolster the requirement for change and give inspiration. Merging increases is the seventh step.

Nonetheless, while the Kotter’s 8 stages plot the administration of an authoritative change, the Bridges Transition Model proposes that change won’t be fruitful if progress doesn’t happen. For this situation, progress is characterized as the consummation of something, which is the main stage. The second stage is the nonpartisan zone, which is a confounding state between the old reality and the new. Amid this stage, individuals are not prepared or agreeable to welcome the fresh starts. Much significance must be given amid this stage, on the grounds that the change may be endangered if the association chooses to rashly get away. Although, if the unbiased zone is finished effectively, numerous open doors for innovative change can be exhibited. The last stage is acknowledgment of the fresh starts and distinguishing

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.