Python-programming-exercises icon indicating copy to clipboard operation
Python-programming-exercises copied to clipboard

Delete 100+ Python challenging programming exercises.txt

Open ankiyagh opened this issue 5 years ago • 1 comments

A doctor has a cinc where he serves his patients. The doctor's consultation fees are different for different groups of patients depending on their age. If the patient's age is below 17. fees is 200 INR If the patient's age is between 17 and 40. fees is 400 INR If the patient's age is above 40, fees is 300 INR Write a code to calculate earnings in a day for which one array/List of values representing age of patients visited on that day is passed as input Note : Age should not be zero or less than zero or above 120. • Doctor consults a maximum of 20 patients a day. Enter age value (press ENTER without value to stop): Example 13 Input 20 30 40 50 2 3 14 Output Total Income 2000 INR Note : Input and Output format should be same as given in above example, For any wrong input display INVALID INPUT

Output format total income INR

ankiyagh avatar Oct 26 '20 09:10 ankiyagh

A doctor has a cinc where he serves his patients. The doctor's consultation fees are different for different groups of patients depending on their age. If the patient's age is below 17. fees is 200 INR If the patient's age is between 17 and 40. fees is 400 INR If the patient's age is above 40, fees is 300 INR Write a code to calculate earnings in a day for which one array/List of values representing age of patients visited on that day is passed as input Note : Age should not be zero or less than zero or above 120. • Doctor consults a maximum of 20 patients a day. Enter age value (press ENTER without value to stop): Example 13 Input 20 30 40 50 2 3 14 Output Total Income 2000 INR Note : Input and Output format should be same as given in above example, For any wrong input display INVALID INPUT

Output format total income INR

????

i-e-re avatar Jul 19 '21 06:07 i-e-re