Sophie has decided to open an animal washing service. She will bathe a dog for $0.50. Cats will be bathed for $3.00 per pound. Write a class CashBox that records the total number of washes and amount of money Sophie has taken in.

computer science

Description

Sophie has decided to open an animal washing service. She will bathe a dog for $0.50. Cats will be bathed for $3.00 per pound. Write a class CashBox that records the total number of washes and amount of money Sophie has taken in. Write a test class for CashBox. Your tester should include several cats and dogs and test that CashBox correctly reports the total washes and amount of money taken in. Your solution should include at least four classes/interfaces. Follow all Java naming conventions, and use appropriate access control. Your solution should include at least 3 of the following. Note that your use of these features should be legitimate, but if they're a bit contrived, that's ok. superclass abstract class interface generic class generic method JUnit test

Instruction Files

Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.