Question

Teachers in most school districts are paid on a schedule that provides a salary based on...

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 Lexington School District might be paid $30,000 the first year. For each year of experience after this first year, up to 10 years, the teacher receives a 2% increase over the preceding value.

Write a program that displays a salary schedule, in tabular format, for teachers in a school district. The inputs are:

  1. Starting salary
  2. Annual percentage increase
  3. Number of years for which to print the schedule

Each row in the schedule should contain the year number and the salary for that year

An example of the program input and output is shown below:

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Thanks for the question, Here is a program in Python, I wrote in python as the programming language was not explicitly mentioned also, the tabular schedule example was also not provided.

Here is the code with screenshot for the sample run. In case, the formatting of the output needs to be changed please do comment, so that I can modify and share the updated code.

thanks, below is the code with screenshot.

==========================================================================

starting_salary = float(input('Enter starting salary: $'))
annual_percentage = float(input('Enter annual percentage increase: '))
years = int(input('Enter the number of years for which to print the schedule: '))

print('{0:>4}{1:>15}'.format('Year', 'Salary($)'))
for year in range(1, years + 1):
    print('{0:>4}{1:>15}'.format(year, '${:.2f}'.format(starting_salary)))
    starting_salary = starting_salary + starting_salary * annual_percentage / 100.0

11: Proje starting_salary = float (input (Enter starting salary: $)) annual_percentage = float(input(Enter annual percenta

Add a comment
Know the answer?
Add Answer to:
Teachers in most school districts are paid on a schedule that provides a salary based on...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT