Question: paython Write a program that prompts the user to enter the salary of a set of employees. The program then prints the total salary of

paython Write a program that prompts the user to enter the salary of a set of
employees. The program then prints the total salary of all employees and
the number of employees with salary under 5000 SR. Use sentinel to end
user entry.
[Sample Run]
Enter the salary, 0 to quit: 5000
Enter the salary, 0 to quit: 4000
Enter the salary, 0 to quit: 6000
Enter the salary, 0 to quit: 3000
Enter the salary, 0 to quit: 5500
Enter the salary, 0 to quit: 6500
Enter the salary, 0 to quit: 0
The total salary is: 30000
The number of employees with salary <5000 is: 2

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 Programming Questions!