| about | help | code help+videos | done | prefs |
The Dankest Memes in the galaxy have joined together to solve a problem. They need to find a dank memes reservoir on the internet. When a place is safe the value of safe is true, otherwise it is false and you will return "This place is not safe.". The higher the number, meme, the better the place. Meme must be between 0 and 10. Find out how safe each place is for these poor dank memes and return "The reservoir has a (int meme) out of 10 safe rating for these dank memes. Looks amazing!" if the number is above 5, return "The reservoir has a (int meme) out of 10 safe rating for these dank memes. Looks a little sketchy." if meme is less than 5, and if the number is 0 return "We shall never speak of that place.". If the int meme number is out of its parameters return "They're lying." Ex.: (5, true) --> "The reservoir has a 5 out of 10 safe rating for these dank memes. Looks a little sketchy." (7, true) --> "The reservoir has a 7 out of 10 safe rating for these dank memes. Looks amazing!" (0, true) --> "We shall never speak of that place." (8, false) --> "This place is not safe." (25, true) --> "They're lying." memeReservoir(0, false) → "This place is not safe." memeReservoir(0, true) → "We shall never speak of that place." memeReservoir(1, false) → "This place is not safe." ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy