Answered step by step
Verified Expert Solution
Question
1 Approved Answer
using python Al Shifa polyclinic asked you to create a python for the following requirements. Write a python program using while loop with if statement
using python
Al Shifa polyclinic asked you to create a python for the following requirements. Write a python program using while loop with if statement to do the following: a. Ask the user to input number of patients. b. Use while loop i. input the Patient type , Registertation Fee, VisitFee and OtherFee for each patient. Note: patient type can be adult or child ii. Calculate the TotalFees of each patient. iii. Count the total number of adult patients with Totalfees less than 50. Page 3 of 4 c. Display the total number of adult patient as given in the sample output. Note: TotalFees = Registertation Fee + VisitFee + Other Fee Sample Output Enter the number of patients: 3 Enter patient's type: adult Enter Registration Fee: 20 Enter Visit Fee: 3 Enter Other Fees: 10 Enter patient's type: adult Enter Registration Fee: 20 Enter visit Fee: 20 Enter Other Fees: 30 Enter patient's type: child Enter Registration Fee: 5 Enter Visit Fee: 5 Enter Other Fees: 5 Number of Adult patients with totalfees less than 50 : 1Step 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