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

 

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

Write a method that accepts a positive integer in base 10. The method considers how to write that number in bases 2, 3, 4, 5, 6, 7, 8, 9, and 10. In each case, it is possible to find the sum of the digits in each of those bases. Return the GREATEST sum of the digits found in any of those bases.


quizSLAPHL_Q100(89) → 17
quizSLAPHL_Q100(11111) → 23
quizSLAPHL_Q100(94299) → 33

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

public int quizSLAPHL_Q100(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: 299

Copyright Nick Parlante 2017 - privacy