7 kyu

Sweet Dreams are Made of Cheese

218 of 496squidmania

Description:

Mr Leicester's cheese factory is the pride of the East Midlands, but he's feeling a little blue. It's the time of the year when the taxman is coming round to take a slice of his cheddar - and the final thing he has to work out is how much money he's spending on his staff. Poor Mr Leicester can barely sleep he's so stressed. Can you help?

  • Mr Leicester employs 4 staff, who together make 10 wheels of cheese every 6 minutes.
  • Worker pay is calculated on how many wheels of cheese they produce in a day.
  • Mr Leicester pays his staff according to the UK living wage, which is currently £8.75p an hour. There are 100 pence (p) to the UK pound (£).

The input for function will be provided as an array of five integers, one for each amount of cheese wheels produced each day.

When the workforce don't work a nice integer number of minutes - much to the chagrin of the company accountant - Mr Leicester very generously rounds up to the nearest hour at the end of the week (not the end of each day). Which means if the workers make 574 wheels on each day of the week, they're each paid 29 hours for the week (28.699 hours rounded up) and not 30 (6 hours a day rounded up * 5).

The return value should be a string (with the £ included) of the total £ of staff wages for that week.

Fundamentals

More By Author:

Check out these other kata created by squidmania

Stats:

CreatedMar 25, 2018
PublishedMar 26, 2018
Warriors Trained1202
Total Skips24
Total Code Submissions2125
Total Times Completed496
JavaScript Completions218
Python Completions176
Ruby Completions46
Crystal Completions6
C++ Completions94
Total Stars18
% of votes with a positive feedback rating83% of 144
Total "Very Satisfied" Votes106
Total "Somewhat Satisfied" Votes28
Total "Not Satisfied" Votes10
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • squidmania Avatar
  • GiacomoSorbi Avatar
  • JohanWiltink Avatar
  • user8436785 Avatar
  • Just4FunCoder Avatar
  • saudiGuy Avatar
Ad