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

 

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

Write a method that returns true if you work in an office, but false otherwise. You MUST have at least three phone lines where you work in order for it to be considered an office. Given the required phone lines, you definitely work in an office if there are cubicals. Maybe you work in an office with no cubicals. If no cubicals are present, you have to at least have a photocopier and be required to go to regular training sessions, and, of course, have enough phone lines. If these conditions are not met, you do NOT work in an office.


workInOffice(true, false, false, 3) → true
workInOffice(true, false, false, 2) → false
workInOffice(false, true, false, 5) → false

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

public boolean workInOffice(boolean cubical, boolean photocopier, boolean training, int phoneLines) { }

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

Copyright Nick Parlante 2017 - privacy