You are to create an efficient OO application that implements an application to maintain Information about a day care service offered for parents while they do their holiday shopping.

The user will provide information for the daycare. To allow extensibility, a Care object can Be created with no information available, the name of the care provider or the address Of the daycare location.

The Care class definition file should includeinstance variables:

  • Address
  • Number of children
  • Names of children (note: the names need not be individually accessible, so an array is not required. A String Is sufficient.)
  • Cost of daily daycare

The class definition should also include instance methods:

  • Validating mutator for the numeric instance variable that is to receive values from the User (daily cost – must be between $30 and $100)
  • addAChild(), that will allow the user to include an additional child on the list of names (not to exceed the limit of ten) and increment the number of children by one
  • Accessors for the instance variables, as well as including a toString() method to gather All pertinent information.
  • amount collected at the end of a day

The HolidayCare application that implements the class described above should prompt The user for the daycare’s address, and daily cost. Then the application should process As many chidren (up to 10) the user chooses. The output shouldInclude theinformationon the daycare (Address, list of children, total cost for all children) as well as the number Of children.

Only ONE Care object is to be manipulated.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.