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

  1. Write a program that accomplishes the following: (20pts) (IN PYTHON)
    1. 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:

  1. 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
  2. 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)

  1. 30000
  2. 31500 1500
  3. 33075 1575
  4. 34728.75 1653.75
  5. 36465.19 1736.44

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!