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

 

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

Write a method that returns a String consisting of num number of "work. " followed by "Now!!!" The first "work. " must be capitalized. The parameter num will be greater than zero. However, if num is greater than 10, return "The Game." instead.


workTime(5) → "Work. work. work. work. work. Now!!!"
workTime(3) → "Work. work. work. Now!!!"
workTime(1) → "Work. Now!!!"

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

public String workTime(int num) { }

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

Copyright Nick Parlante 2017 - privacy