Java 8 dojo TDD task
Medical centre provide following services:
-
Diagnosis
-
X-Ray
-
Blood Test
-
ECG
-
Vaccine
Each of the services has an associated default cost
-
Diagnosis £60
-
X-Ray £150
-
Blood Test £78
-
ECG £200.40
-
Vaccine £27.50 (service) + £15 (for each vaccine)
Discounts are applied for services based on the following criteria:
-
Senior citizens (between 65 and 70) receive a 60% discount
-
Senior citizens (over 70) receive a 90% discount
-
Children under 5 receive 40% discount
-
Patients with "MediHealth Health insurance" get additional 15% discount on Blood test when they are diagnosed by a MediHealth practitioner
Exercise:
The medical centre requires you to implement the basis of a new billing engine using the rules detailed above. Solution to be written in a TDD.