Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

Do you think physicians should have unions? Why or why not?

Answered: 1 week ago