Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    7
    Views
    5,405

    Re: Decimal to binary conversion

    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...
  2. Replies
    7
    Views
    5,405

    Re: Decimal to binary conversion

    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:...
  3. Replies
    7
    Views
    5,405

    Re: Decimal to binary conversion

    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;
    ...
  4. Replies
    7
    Views
    5,405

    Re: Decimal to binary conversion

    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...
Results 1 to 4 of 4