Python Programming The trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.png Do NOT use any logical operator in the program. Run your program with the input file, program7.txt Use sep='' , ',.2f' where needed.
COSC 1336 –
Program 7 – Repetition Structures and Files
Python Programming
The trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.png
Do NOT use any logical operator in the program.
Run your program with the input file, program7.txt
Use sep='' , ',.2f' where needed.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images