Answered step by step
Verified Expert Solution
Link Copied!

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 -

Congratulationsyou've been hired by a pet setting and grooming company called Pet Elevator. They're building their own software to use in-house.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 setnameandspecies.ThelistVaccinationsmethod returns the elements ofvaccinationsas a comma-delimited string. For example, if theListcontains["Rabies", "Distemper", "Parvo"], the output must be"Rabies, Distemper, Parvo".Keep in mind the spaces between and not to have a trailing comma.Create aPetTestsclass in thecom.techelevator.crmpackage. Create a test forlistVaccinations.Declare aCustomerclass that inherits thePersonclass.Note: 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 getBalanceDue(Map). You need to implement this method in theCustomerandEmployeeclasses.ThegetBalanceDuemethod returns the total amount the customer owes.It accepts one parameter, aMapof services rendered:Employees receive a 50% 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 thecom.techelevator.crmpackage. Create a test forgetBalanceDue.You'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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

What is Nutriens approach to handling personal information?

Answered: 1 week ago