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

 

siochi@cnu.edu > statusBasedUpon
prev  |  next  |  chance

statusBasedUpon() -- given an age, return a status. The status for ages up to 7 is "infant", up to 14 is "child" and otherwise is "oldie" (like Dr. Siochi).


statusBasedUpon(7) → "infant"
statusBasedUpon(14) → "child"
statusBasedUpon(15) → "oldie"

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

public String statusBasedUpon(int age) { }

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