Question: Following are two arrays, time _ started, time _ ended, of an employee s working hours over seven days. Times are based on a 2

Following are two arrays, time_started, time_ended, of an employees working hours over seven days. Times are based on a 24 hour clock (between 0 and 24). The company is open from 8 am to 11:59 pm.
double []time_started ={9,15,10,8,12,19,11};
double []time_ended ={20,22,16,14,21,23,22};
The hourly pay of the employee is $25, for hours worked between 8 am and 6 pm. For 6 pm to 12 am, the employee gets 15% extra pay.
Sample of Expected output:
Time when work started =9
Time when work ended =20
Daily pay =(189)25+(2018)25(1+15/100)= $282.5
Store both arrays in a file named Topchyan_demo. Pass both arrays into a class called Topchyan_pay. 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 Topchyan_fin2.java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The given question appears incomplete It provides information about the input arrays timestarted and ... View full answer

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!