Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Im not sure why im getting my output for my code in java... 6.9 LAB: Convert to reverse binary Write a program that takes in

Im not sure why im getting my output for my code in java...image text in transcribed

6.9 LAB: Convert to reverse binary Write a program that takes in a positive integer as input, and outputs a string of 1 's and 0 's representing the integer in reverse binary. For an integer x, the algorithm is: Aslongasxisgreaterthan0Outputx&2(remainderiseither0or1)x=x/2 Note: The above algorithm outputs the 0 's and 1 's in reverse order. Ex. If the input is: 6 the output is: 011 6 in binary is 110; the algorithm outputs the bits in reverse. When done developing your program, press the Submit for grading button below. This will submit your program for auto-grading. Coding trail of your work What is this? 2/27M0,0,0,0,0,0,0,0,0,0,00,0,0,0,0,0,0,0,0,00,0,0,0,0,0,00min:19 Latest submission - 8.45PM CST on 02/27/23 Total score: 0/10 Only show failing tests 1:Compare output 0/4 Output is nearly correct, but whitespace differs. See highlights below. Input Your output Expected output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago