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

 

pais@kinetigram.com > L53_inOrderEqual
prev  |  next  |  chance

APCS Logic 5, Problem 3. Given three ints, a b c, return true if they are in strict increasing order, such as 2 5 11, or 5 6 7, but not 6 5 7 or 5 5 7. However, with the exception that if "equalOk" is true, equality is allowed, such as 5 5 7 or 5 5 5.


L53_inOrderEqual(2, 5, 11, false) → true
L53_inOrderEqual(5, 7, 6, false) → false
L53_inOrderEqual(5, 5, 7, true) → true

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

public boolean L53_inOrderEqual(int a, int b, int c, boolean equalOk) { }

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: 200

Copyright Nick Parlante 2017 - privacy