Question: Congratulations you ' ve been hired by a pet setting and grooming company called Pet Elevator. They're building their own software to use in -
Congratulationsyouve been hired by a pet setting and grooming company called Pet Elevator. They're building their own software to use inhouse.Your job is to create classes for the Customer Relationship Management CRM system. A CRM system helps to manage customer information and other related data.Since Pet Elevator is a pet sitting and grooming company, you'll need to create a class to represent the human customers and a class to represent their pets.Note: Remember to setvaccinationsto a new initializedArrayList You can do this in the property declaration or constructor.Create one constructor forPetthat accepts twoStrings to setnameandspeciesThelistVaccinationsmethod returns the elements ofvaccinationsas a commadelimited string. For example, if theListcontainsRabies "Distemper", "Parvo" the output must beRabies Distemper, Parvo".Keep in mind the spaces between and not to have a trailing comma.Create aPetTestsclass in thecomtechelevator.crmpackage Create a test forlistVaccinationsDeclare aCustomerclass that inherits thePersonclassNote: Remember to setPetsto a new initializedArrayList You can do this in the property declaration or constructors.Customerneeds two constructors:You received an additional requirement to implement theBillableinterface on theCustomerclass and theEmployeeclass because employees can also be customers.TheBillableinterface defines a method with the signaturedouble getBalanceDueMap You need to implement this method in theCustomerandEmployeeclassesThegetBalanceDuemethod returns the total amount the customer owes.It accepts one parameter, aMapof services rendered:Employees receive a discount on walking services, but the discount isn't applied in theMapprovided In theEmployeeimplementation of the method, you'll have to calculate the discount.Create aCustomerTestsclass in thecomtechelevator.crmpackage Create a test forgetBalanceDueYou'll also need to add a test forgetBalanceDuein theEmployeeTestsclass Keep in mind the discount.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
