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

 

frew@mclean.com ttunit3bday1 > countQuarters
prev  |  next  |  chance

Returns the number of whole quarter coins what would be used when making change for the parameter cents


countQuarters(64) → 2
countQuarters(1278) → 3
countQuarters(25) → 1

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

public int countQuarters(int cents) { }

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