+ 2

Write a program that Will read a file of employees worked hours and produce the gross pay for each of the employees.

The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40. The hourly rates are 15 per hour. Each line represents a day (there are five). An each hour represent an employee (there are five) Employee Hours worked 11, 10, 11, 8, 9 9,8,7,8,4 8,8,8,8,8 4,7,6,8,9 7,4,6,8,3

25th Apr 2017, 2:45 PM
que Harris
que Harris - avatar
16 odpowiedzi
+ 3
i can do it but can u once explain the question correctly
25th Apr 2017, 3:08 PM
shobhit
shobhit - avatar
+ 2
fast plz
25th Apr 2017, 3:11 PM
shobhit
shobhit - avatar
+ 2
Is that better?
25th Apr 2017, 3:14 PM
que Harris
que Harris - avatar
+ 2
let me try with it.
25th Apr 2017, 3:16 PM
shobhit
shobhit - avatar
+ 2
Any answer?
25th Apr 2017, 4:00 PM
bayne harris
bayne harris - avatar
+ 2
yeah i m doing it will take some more time maybe half an hour.
25th Apr 2017, 4:01 PM
shobhit
shobhit - avatar
+ 2
Can you give us what you have so far?
25th Apr 2017, 4:03 PM
bayne harris
bayne harris - avatar
+ 2
Time contraint :(
25th Apr 2017, 4:03 PM
bayne harris
bayne harris - avatar
+ 2
i will give surprise plz wait.
25th Apr 2017, 4:05 PM
shobhit
shobhit - avatar
+ 2
Anything yet or u had hard time with it?
25th Apr 2017, 4:31 PM
que Harris
que Harris - avatar
+ 2
just 5 more minutes
25th Apr 2017, 4:31 PM
shobhit
shobhit - avatar
+ 2
one more big problem is left.
25th Apr 2017, 4:38 PM
shobhit
shobhit - avatar
+ 2
do u know how to keep 2d array in parameters
25th Apr 2017, 4:42 PM
shobhit
shobhit - avatar
+ 2
yeah
25th Apr 2017, 4:42 PM
que Harris
que Harris - avatar
+ 2
https://code.sololearn.com/cW4p5i5PiyVN/?ref=app it is not working i dont why. maybe due to some server problem maybe.
25th Apr 2017, 5:03 PM
shobhit
shobhit - avatar
+ 1
but still i think its correct and this code might not work as asked but i have created a framework you can modify it.
25th Apr 2017, 5:04 PM
shobhit
shobhit - avatar