about | help | code help+videos | done | prefs |
Write a method that determines your "trouble level" based on the types of creatures that are surrounding you. Spiders are a little scary so they add 2 to your trouble level. Snakes are more scary so they add 4. Gators are the scariest with their big jaws full of teeth and their swishy tails, so they add 7 to your trouble level. Of course if ALL of these creatures are surrounding you, your trouble level doubles! Look at the test data for examples. mar5_2020_APP1SLHL_troubleLevel(true, true, true) → 26 mar5_2020_APP1SLHL_troubleLevel(false, true, false) → 4 mar5_2020_APP1SLHL_troubleLevel(true, false, false) → 2 ...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: 290
Copyright Nick Parlante 2017 - privacy