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 that Client and Appointment classes are needed. Develop the class file java. 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. 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 a PastAppointment subclass 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. The design of the above classes should be able to reflect the following activities, which will be simulated in a Main class, java, where X refers 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.
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 that Client and Appointment classes are needed. Develop the class file java. 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. 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 a PastAppointment subclass 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. The design of the above classes should be able to reflect the following activities, which will be simulated in a Main class, java, where X refers 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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
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 that Client and Appointment classes are needed.
- Develop the class file java. 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.
- 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 a PastAppointment subclass 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.
- The design of the above classes should be able to reflect the following activities, which will be simulated in a Main class, java, where X refers 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 6 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education