Answered step by step
Verified Expert Solution
Question
1 Approved Answer
- Write a stored function that takes the name of the city where the patient lives. The value return will be based on the following
- Write a stored function that takes the name of the city where the patient lives. The value return will be based on the following table:
City | Discount |
Carbondale | 20% |
Anna | 10% |
No discount is given to patient that lives in any other cities. Call this function from anonymous block. Allow the user to enter the patient ID. Calculate and display the amount that the patient has to pay.
Expected output:
Enter the patient ID: 331
He/she is the patient of Dr. Smith
Charge per appointment for Dr.Smith is RM 25 Please pay only : RM 22.5
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