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. 1. Develop the class file Client.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. 2. The class file Appointment.java. 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 Rastaprointment subclass that keeps track of whether the appointment was "cancelled" Gf the patient called with sufficient advanced notice) or "missed" (if the patient

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

JAVA

 

please please help me with this. I would spend 2 or more questions on this I don't mind I just wanna learn how you guys did this program. Please? I'd really truly appreciate this. 

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.
1. Develop the class file Client.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.
2. The class file Appointment.java. 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 PastaRrointwent 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.
3. The design of the above classes should be able to reflect the following activities, which will
be simulated in a Main class, ApptMainX.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.
Transcribed Image Text: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. 1. Develop the class file Client.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. 2. The class file Appointment.java. 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 PastaRrointwent 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. 3. The design of the above classes should be able to reflect the following activities, which will be simulated in a Main class, ApptMainX.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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY