Question: Write a program that accomplishes the following: (20pts) (IN PYTHON) Teachers in most school districts are paid on a schedule that provides a salary based
- Write a program that accomplishes the following: (20pts) (IN PYTHON)
- Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience. For example, a beginning teacher in the Chicago School District might be paid $30,000 the first year. For each year of experience after the first year, up to 10 years, the teacher receives a 3% increase over the preceding value. Write a program that displays a salary schedule for the teachers in a school district. The inputs are the starting salary, the percentage increase, and the number of years in the schedule. Each line in the schedule should contain the year number, the salary for that year, and the salary increase.
Requirements:
- Use a function to print the new salary and salary increase. Use a descriptive name for the function. -2pts if the function name is not descriptive
- Add a docstring to the function that describes what the function does. -2pts if no docstring is included in the function
Example input:
Starting salary: 30000
Percentage increase: 5
Number of years: 5
Example output: (The alignment does not need to be perfect)
- 30000
- 31500 1500
- 33075 1575
- 34728.75 1653.75
- 36465.19 1736.44
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
