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

 

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

APCS Logic 1, Problem 2. We have two monkeys, a and b, and the parameters aSmile and bSmile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return true if we are in trouble.


L12_monkeyTrouble(true, true) → true
L12_monkeyTrouble(false, false) → true
L12_monkeyTrouble(true, false) → false

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

public boolean L12_monkeyTrouble(boolean aSmile, boolean bSmile) { }

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: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy