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

 

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

The TV show "Chopped" pits chefs against each other in three rounds. The winning chef is the one who is not chopped in any of the rounds. Write a method that accepts three boolean values representing the three rounds. If an input parameter is 'true' it means the contestant was chopped during that round. This is a special version of the TV show where all contestants get to compete in all three rounds... but remember that the winner must avoid being chopped in all three rounds. Return 'true' if the chef wins. Return 'false' otherwise.


foodWonChopped(true, false, false) → false
foodWonChopped(false, false, false) → true
foodWonChopped(true, false, true) → false

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

public boolean foodWonChopped(boolean appetizer, boolean mainCourse, boolean dessert) { }

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