You work for a company (imagine any you'd like to work for). Before the next vacation, you want to check what salary you have received for the current working period. You have the dates when the period starts and ends, as well as information about the working time per day and the salary per hour.
The dates are input in the format of year-month-day. The salary and the working time are integer numbers without any other symbols. You don't work on weekends and Wednesdays. And on Fridays, you work one hour less than on other days! Now you need to find out the total amount for a given period.
The
main() function of your program should take the start and end date strings as input and then parse them to the proper date format. Then, the calculateSalary() function should calculate and print the totalSalary based on the total workingTime and the salaryPerHour.