Question: Doctors often charge people for visits on a sliding scale based on annual income of the patient's household and number of people in the household.

 Doctors often charge people for visits on a sliding scale basedon annual income of the patient's household and number of people in

Doctors often charge people for visits on a sliding scale based on annual income of the patient's household and number of people in the household. You must write a program that calculates a patient's charge based on the table below. Annual Household Income 1 person 2 people 3 people 4 or more people $0 - $20,000 $5 $5 $5 $0 $20,001 - $50,000 $20 $20 $15 $10 $50,001 - $80,000 $30 $25 $25 $20 $80,001+ $40 $35 $35 $30 College students get a special flat fee of $10/visit. Employees who work with the doctor get a special flat fee of $15/visit. Your program must take as input: . a patient name an annual household income number of people in the household . whether or not they are a college student whether or not they are an employee of the doctor You must output the patient name and charge for the office visit A sample run with input: Patient name: Linus Annual household income: 25000 Size of household: 3 College student (y):n Employee (y): n Patient: Linus Charge: $ 15 A second run: Patient name: Sammi Annual household income: 82000 Size of household: 2 . College student (y):n Employee (y): n Employee (y): n Patient: Sammi Charge: $ 35 A run with a college student: Patient name: Nixie Annual household income: 35000 Size of household: 4 College student (y): y Employee (y:n Patient: Nixie Charge: $ 10 Hint: Create an IPO chart for the problem. Start by writing the prompts for the input and printing the output. Then work on the charges for college students and employees. Get those running before you try the other sliding scale figures. ** You MUST comment your code. Uncommented code will receive a zero. Insufficient or incorrect comments will result in a 1-2 point reduction. ** LAB 4.19.1: Homework 3 - Decisions 0/12 | main.py 1 Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!