Question: ***PYTHON*** Write a python program to accept the yearly salary of five people(one at a time). Each time the user enters the salary for a
***PYTHON***
Write a python program to accept the yearly salary of five people(one at a time). Each time the user enters the salary for a person, using Accumulation concept, calculate and display the total salary up to that point.
print("The total salary so far is: "+ str(totalsalary) )
These are for example:
Please enter first person's yearly salary: 100 The total salary so far is: 100 Please enter second person's yearly salary: 200 The total salary so far is: 300 Please enter third person's yearly salary: 400 The total salary so far is: 700 Please enter fourth person's yearly salary: 530 The total salary so far is: 1230 Please enter fifth person's yearly salary: 220 Total salary so far is: 1450
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
