Question: 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
 Question 1) Validate the input for the errors if user enter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!