Following are two arrays, timestarted, timeended, of an employees working hours over seven days. Times are based on a hour clock between and The company is open from am to : pm
double timestarted ;
double timeended ;
The hourly pay of the employee is $ for hours worked between am and pm For pm to am the employee gets extra pay.
Sample of Expected output:
Time when work started
Time when work ended
Daily pay $
Store both arrays in a file named Topchyandemo. Pass both arrays into a class called Topchyanpay. method called getTotal. Compute and print the seven daily pays within this method. Return the sum of the seven daily pays back into the main method and print.
Save the file as Topchyanfinjava