subject
Computers and Technology, 05.04.2021 01:10 mat1413

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 shown below:

Enter the starting salary: $30000
Enter the annual % increase: 2
Enter the number of years: 10

Year Salary

1 30000.00
2 30600.00
3 31212.00
4 31836.24
5 32472.96
6 33122.42
7 33784.87
8 34460.57
9 35149.78
10 35852.78

However I'm having trouble getting the decimal point to the right spot.
Where would I place the round function in this program?? I need help asap.

StartingSal = int(input("Enter the starting salary: $ "))

AnnualIncrease = (int(input("Enter the annual % increase: %")) / 100)

Years = int(input("Enter the number of years: "))

for count in range(1,Years+1):

print("Year ", count, " Salary: ", StartingSal*((1+AnnualIncrease)**(c ount-1)))

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Acompany is inviting design for its new corporate logo from its users. this is an example of ? a. crowdfunding b. crowdvoting c. crowdsourced design d. crowdtracking
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
You know the right answer?
Teachers in most school districts are paid on a schedule that provides a salary based on their numbe...
Questions
question
Mathematics, 21.08.2019 15:50
question
Mathematics, 21.08.2019 15:50
question
Mathematics, 21.08.2019 15:50
Questions on the website: 13722362