Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Gambang Specialist Hospital (GSH) is a newly developed hospital in Gambang. Pahang. The GSH has assign you to develop a naw system colled Patient informotion
Gambang Specialist Hospital (GSH) is a newly developed hospital in Gambang. Pahang. The GSH has assign you to develop a naw system colled Patient informotion System [Pis] for them to store the potient information. The PIS need to store the patient information as shown in Table? 2. Table 2: Patlent Information Beside storing the patient information, the PIS also able to colculate the charge of patient stat stay in the GSH. The price for stay in the GSH is RM250.00 per right. There will be ciscount for patient for potient if the oge above 60 years old with 10% discount while 5% discount for children below 12 years oid. In addition, 10% discount will be given to the patient if the patient is the member of GSH society. Table 3 shows the discount rate. As a programmer, you need to develop a JAVA program to detemine the totat payment for a patient based on the above sitvalion. You need to wite a main program that wil print the total payment need to poy by customer, one function to calculate the discount based on the age and one function to calculate the discount based on the membership status
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started