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...


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:
• Starting salary
• Annual percentage increase
• 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 below.


An example of the program input and output is below.<br>Input:<br>Enter the starting salary: $30000<br>Enter the annual % increase: 2<br>Enter the number of years: 10<br>Output:<br>Year<br>Salary<br>1.<br>2.<br>30000.00<br>30600.00<br>31212.00<br>31836.24<br>32472.96<br>33122.42<br>33784.87<br>34460.57<br>35149.78<br>35852.78<br>4.<br>7.<br>8.<br>6.<br>10<br>

Extracted text: An example of the program input and output is below. Input: Enter the starting salary: $30000 Enter the annual % increase: 2 Enter the number of years: 10 Output: Year Salary 1. 2. 30000.00 30600.00 31212.00 31836.24 32472.96 33122.42 33784.87 34460.57 35149.78 35852.78 4. 7. 8. 6. 10

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here