Question: 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 : 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
