Now write down the steps that you take to convert a decimal number to a binary one.
Make them very simple steps. Only do one thing at a time.
Given that, we can help you convert the steps to...
Type: Posts; User: Norm
Now write down the steps that you take to convert a decimal number to a binary one.
Make them very simple steps. Only do one thing at a time.
Given that, we can help you convert the steps to...
Even before designing an algorithm, you need to understand the problem. What is the input to the program and what is the output.
For example if the input to the program is 9 the output should be:...
What is the purpose of this line in your program:
int i = 42;
Can you explain what each line in your decimalToBinary method is there for? Why did you code this:
int binaryValue = decimal % 16;
...
What output does the program generate? Please execute the program and copy and paste here the console showing the output.
And then explain what the problem is with the output.
What is your...