Write a function that calculates overtime and pay associated with overtime.
- Working 9 to 5: regular hours
- After 5pm is overtime
Your function gets an array with 4 values:
- Start of working day, in decimal format, (24-hour day notation)
- End of working day. (Same format)
- Hourly rate
- Overtime multiplier
Your function should spit out:
$ + earned that day (rounded to the nearest hundredth)
Write the code in https://repl.it/languages/java10; when you’re done click Save, then paste the URL in the answer section from below.