07.10 Price of Work

Difficulty: hard
Size: L


A construction firm is doing small repairs. Make a program for inputting the repair work details and calculating its price. The price for an hour of work is 48 during the workdays and 72 on Sundays. Create a script file 07.10_functions.js and define there the following functions: allCapsTitleTrimmed(originalText) and isSunday(dateText) . The functions will be used in this program.

Sample output for shown input:

HINTS:

Submit a link to your code (myy etc).

  Download Template Code  Return your solution at Moodle