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

 

pais@kinetigram.com logic04 > L44_in1To10
prev  |  next  |  chance

APCS Logic 4, Problem 4. Given a number n, return true if n is in the range 1..10, inclusive. Unless "outsideMode" is true, in which case return true if the number is less or equal to 1, or greater or equal to 10.


L44_in1To10(5, false) → true
L44_in1To10(11, false) → false
L44_in1To10(11, true) → true

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

public boolean L44_in1To10(int n, boolean outsideMode) { }

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