id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > parkourDifficulty
prev  |  next  |  chance

Parkour difficulty increases as the number of tricks increases. Each additional trick adds one to the total difficulty. However, if highDifficulty is true you must double the total Parkour difficulty level.


parkourDifficulty(true, true, true, false) → 3
parkourDifficulty(true, true, true, true) → 6
parkourDifficulty(true, false, false, true) → 2

...Save, Compile, Run (ctrl-enter)

public int parkourDifficulty(boolean jump, boolean flip, boolean climb, boolean highDifficulty) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 280

Copyright Nick Parlante 2017 - privacy