Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Question 1 ) Validate the input for the errors if user enter incorrect value from the inputs below. Question 2 ) Please use function and

Question 1) Validate the input for the errors if user enter incorrect value from the inputs below.
Question 2) Please use function and main function on the below python program/code
Question 3) Add a message like this "The salary is 36569.83" for the final year output. For example, if you enter 11 for the year, the final (11?th year) result will display "The salary is 36569.83"
Teachers in most school districts are paid on a schedule that provides a salary based on their number of years of teaching experience.
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
130000.00
230600.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
"The salary is 36569.83"
The original question code for Salary Schedule Generator for Teachers is as follows and then please include/answer/complete the above three questions in the below code:
# Get inputs from the user
starting salary = float(input("Enter the starting salary: $"))
annual increase = float(input("Enter the annual % increase: "))
num years = int(input("Enter the number of years: "))
# Print the table header
print("Year Salary")
print("-------------")
# Calculate and print the salary for each year
salary = starting salary
for year in range(1, num years +1):
print(f"{year:2d}{salary:.2f}")
salary Plea
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students explore these related Databases questions