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

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!