Chapter 14 Programming Projects 5

Give the definition of two classes, Patient and Billing , whose objects are records
for a clinic. Patient will be derived from the class Person given in Programming
Project 14.4 . A Patient record has the patient’s name (inherited from the
class Person ) and primary physician, of type Doctor defined in Programming
Project 14.3 . A Billing object will contain a Patient object and a Doctor object,
and an amount due of type double . Be sure your classes have a reasonable complement
of constructors and accessor methods, an overloaded assignment operator,
and a copy constructor. First write a driver program to test all your methods, then
write a test program that creates at least two patients, at least two doctors, at least
two Billing records, then prints out the total income from the Billing records.
Last edited on
Please note, that this is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attemts to solve this problem youself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find deriviative of function without knowledge in ariphmetics, you cannot do more complex tasks in programming without clear understanding of basics
Topic archived. No new replies allowed.