'''
Program: OstranderSalaryInc.py
Author: <NAME>
Last data modified: 7/16/2021

The purpose of this program is to calculate the pay increase,
year over year. This is based on the starting salary, annual raise,
and number of years that this will occur.

'''

salary = float(input("Enter the starting salary: "))
annualPercent = float(input("Enter the annual '%' increase: "))
numYears = int(input("Enter the number of years: "))

print("\nYear", end='    ')
print("Salary", '\n--------------')

for year in range(numYears + 1):
    if year == 0:
        print("%2d%12.2f" % (year, salary))
    else:
        annualInc = salary * annualPercent/100
        salary = salary + annualInc
        print("%2d%12.2f" % (year, salary))


'''
Program: OstranderSalaryInc.py
Author: <NAME>
Last data modified: 7/16/2021

The purpose of this program is to calculate the pay increase,
year over year. This is based on the starting salary, annual raise,
and number of years that this will occur.

'''

salary = float(input("Enter the starting salary: "))
annualPercent = float(input("Enter the annual '%' increase: "))
numYears = int(input("Enter the number of years: "))

print("\nYear", end='    ')
print("Salary", '\n--------------')

for year in range(numYears + 1):
    if year == 0:
        print("%2d%12.2f" % (year, salary))
    else:
        annualInc = salary * annualPercent/100
        salary = salary + annualInc
        print("%2d%12.2f" % (year, salary))


Program: OstranderSalaryInc.py Author: <NAME> Last data modified: 7/16/2021  The purpose of this program is to calculate the pay increase, year over year. This is based on the starting salary, annual raise, and number of years that this will occur.