I need to write the code for a program that will allow a user to enter their name and the total hours they worked in a given month and press enter to return the amount of weeks, days, hours worked (using an 8 hour day and 40 hour week). I need to know how to do the calculation of the hours to weeks, days, hours...using a modulus arithmetic formula. For example, if user enters 49 hours and presses enter, it would return 1 week, 1 day , 1 hour.
Any help would be greatly appreciated.