Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started