Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete 100+ Python challenging programming exercises.txt #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ankiyagh
Copy link

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

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<integer> INR
@i-e-re
Copy link

i-e-re commented Jul 19, 2021

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

????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants