7 kyu

The Office II - Boredom Score

4,435 of 8,238PG1

Description:

Every now and then people in the office moves teams or departments. Depending what people are doing with their time they can become more or less boring. Time to assess the current team.

You will be provided with an object(staff) containing the staff names as keys, and the department they work in as values.

Each department has a different boredom assessment score, as follows:

accounts = 1
finance = 2
canteen = 10
regulation = 3
trading = 6
change = 6
IS = 8
retail = 5
cleaning = 4
pissing about = 25

Depending on the cumulative score of the team, return the appropriate sentiment:

<=80: 'kill me now'
< 100 & > 80: 'i can handle this'
100 or over: 'party time!!'

The Office I - Outed
The Office III - Broken Photocopier
The Office IV - Find a Meeting Room
The Office V - Find a Chair

Arrays
Fundamentals

More By Author:

Check out these other kata created by PG1

Stats:

CreatedSep 29, 2016
PublishedSep 29, 2016
Warriors Trained13074
Total Skips416
Total Code Submissions21890
Total Times Completed8238
JavaScript Completions4435
Ruby Completions263
CoffeeScript Completions12
Crystal Completions9
Python Completions2363
C# Completions391
Haskell Completions66
Java Completions740
Groovy Completions9
Clojure Completions10
Lua Completions27
Dart Completions34
C++ Completions97
Total Stars135
% of votes with a positive feedback rating92% of 1548
Total "Very Satisfied" Votes1334
Total "Somewhat Satisfied" Votes181
Total "Not Satisfied" Votes33
Total Rank Assessments9
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • PG1 Avatar
  • GiacomoSorbi Avatar
  • user8476848 Avatar
  • nbeck Avatar
  • EatYourBeetS Avatar
  • monadius Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • ehonsey Avatar
  • blu.knite Avatar
  • ejini战神 Avatar
  • hibrahimag1 Avatar
  • FranzMartyn Avatar
  • Tester_blck Avatar
  • PetitLu117 Avatar
Ad