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

 

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

Write a method that converts a non-negative decimal number into its binary representation. Return a string that states the equivalence as shown in the test data.


quiz2024_08_23_SLHL_binary(0) → "0 base 10 = 0 base 2"
quiz2024_08_23_SLHL_binary(1244) → "1244 base 10 = 10011011100 base 2"
quiz2024_08_23_SLHL_binary(53) → "53 base 10 = 110101 base 2"

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

public String quiz2024_08_23_SLHL_binary(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: 230

Copyright Nick Parlante 2017 - privacy