Your problem is somewhat ill defined as there are multiple ways of calcualting 'the average of the raises'. Instead I'll forcus on helping you calcualte the averages. What I am asking is why the original salary and pay raise aren't being printed for each value that is being read from the file? I have also provided the data that is in the text file below:įor now i will avoid looking at how you display the pay raises of each employees as your print statements appear to do that already? Without your 'program7.txt' file i cant see what is actually being produced though so perhaps you can edit the question to describe your current and desired outputs. ![]() Thanks in advanceĮdit: Here is the output that is being given from the code I provided above. Any help that can be offered will be very much appreciated. I also don't know how to set up the variables necessary to calculate the average of the raises. I am struggling to get the output to display the pay raise for each of the employees after reading the data from the file. Print('The new salary total is: ', format(newSalaryTotal, '.2f')) Print('The total is: ', format(total, '.2f')) Print('The original salary is: ', salary) This is the code that I have so far: def main(): Also, print the total faculty payroll before and after Program that will print the pay raise for each faculty member, the total amount of the However before doing so, they want to know how much this will cost. They want to grant a 7 percent raise for those earning more than $50,000.00,Ī 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all ![]() The trustees of a small college are considering voting a pay raise for their faculty ![]() Here is the problem I am trying to solve for my introduction to programming course:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |