Hello all! I am sorry to have to waste your time with such an easy problem but I am stuck with some coders block on this one. I know it is definitely an easy fix I just cannot seem to wrap my head around it at the moment... I do feel quite foggy at the moment though... Here is my code #Ian Olsen #calculate distance traveled and display each hour. def main(): #Get MPH car traveled at speed_traveled = int(input('How many MPH did you travel at? : ')) #Get hours traveled hours_traveled = int(input('How many hours did you travel? : …

Member Avatar
Member Avatar
+0 forum 3

This is a sample from a payroll file I have to work with, it lists employee number, different types of earnings, & check date. The goal is to get a subtotal per employee that lists the employee's total wages and other earnings. I can't get my head around how to do this, can someone offer some suggestions? Some employees may have only one line, other employees may have lines with no regular wage types, only deductions/earnings (bonuses, insurance, etc...) 240 TN DP 800.00 1696.65 .00 .00 .00 .00 65 46.20 11/10/11 240 TN DP 800.00 1696.65 .00 .00 .00 .00 …

Member Avatar
Member Avatar
+0 forum 1

The End.