Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

1. What are the pros and cons of diversity for an organisation?

Answered: 1 week ago

Question

1. Explain the concept of diversity and equality in the workplace.

Answered: 1 week ago