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

 

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

Write a method that returns 'true' if you win a game involving tossing three coins. You win if all three coins are heads. You also win if all three of the coins are tails. In all other cases you lose. Each of the three boolean parameters represents a single coin. Heads is represented by a value of 'true' while tails is represented by a value of 'false'.


jan8_2016_APSLHLwin(true, true, true) → true
jan8_2016_APSLHLwin(false, false, false) → true
jan8_2016_APSLHLwin(true, false, false) → false

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

public boolean jan8_2016_APSLHLwin(boolean b1, boolean b2, boolean b3) { }

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

Copyright Nick Parlante 2017 - privacy