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

 

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

Write a method that returns a string that describes the equivalence between the 'base10num' given in base 10 and that same number written in base 'newBase'. Look at the test data for examples. Preconditions: base10num>=0; 2<=newBase<=9


quiz2023_09_12_HL_convert(0, 2) → "0 in base 10 is equal to 0 in base 2."
quiz2023_09_12_HL_convert(0, 7) → "0 in base 10 is equal to 0 in base 7."
quiz2023_09_12_HL_convert(0, 9) → "0 in base 10 is equal to 0 in base 9."

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

public String quiz2023_09_12_HL_convert(int base10num, int newBase) { }

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

Copyright Nick Parlante 2017 - privacy