A chiropractor needs a JAVA application that keeps track of the appointments she’s made with her clients and keeps track of their outstanding balances. As the applications developer, you determined...


A chiropractor needs a JAVA application that keeps track of the appointments she’s made with her clients and keeps track of their outstanding balances. As the applications developer, you determined thatClient andAppointment classes are needed.




  1. Develop the class filejava. Make sure that the class stores the client’s name, and the outstanding balance. Client objects should have a method to increase its balance whenever the patient completes (or misses) an appointment and a method to reduce the balance when a payment is made. (Negative balances are OK). Include the appropriate constructor and accessor methods.




  1. The class filejava. stores a reference to the appropriate Client object, the (future) date/time of the appointment, and the total cost of the appointment. You may want to design aPastAppointmentsubclass that keeps track of whether the appointment was “cancelled” (if the patient called with sufficient advanced notice), or “missed” (if the patient missed the appointment), or “completed” (in which case the client is billed). An appointment usually costs $75, but some clients may get a special discounted rate. A client is billed $25 for a missed appointment.




  1. The design of the above classes should be able to reflect the following activities, which will be simulated in a Main class,java,whereXrefers to your last name.




  • The chiropractor has three patients, Amy, Nancy, and Jerry.

  • Amy makes an appointment for 9:30 AM on December 1st. Jerry makes an appointment for 11:00 AM on December 1st. Nancy makes an appointment for 1:30 PM on December 1st.

  • Nancy completes her appointment, but it went longer than expected so costs $100. She schedules another appointment for 11:00 on December 8th.

  • Jerry cancels his appointment. He doesn’t schedule a new one.

  • Amy completes her appointments on the 1st. She makes another appointment for December 18th at 9:30 AM.

  • Nancy doesn’t show up for her appointment on the 8th. She doesn’t schedule a new one.

  • Amy makes a payment of $50.

  • The chiropractor lists the outstanding balances of her clients.

  • The chiropractor lists the information about the appointments that are still pending as of December 15th.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here