Question: PYTHON: Write a pay-raise program that requests a person's first name, last name and current annual salary, and then displays the person's salary for next

PYTHON:

Write a pay-raise program that requests a person's first name, last name and current annual salary, and then displays the person's salary for next year. People earning less than $40,000 will receive a 5% raise, and those earning $40,000 or more will receive a raise of $2,000 plus 2% of the amount over $40,000.

Use the following functions:

inputInfo() will accept the input and return the current salary.

calculateNewSalary(oldS) will return the salary increased by the raise

output(newS) will print the new salary

main() will call the functions (sending the needed parameters).

The statement main() should be aligned with the def statements.

main() will then run the "main function"

If the input is:

John

Smith

40000

Standard output exactly matches

Enter first name: John

Enter last name: Smith

Enter current salary: $40000

The new salary is $42000.00

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!