Recent content by Mehwish-S

  1. M

    Comp Sci Write a Java program to convert binary numbers to decimal numbers.

    Thank you so much Im new to this so I don't know how to use it much :S No, I couldn't enter the Binary Number because I am using netbeans How is it possible to enter the number? Do i just type it in next to "Enter Binary Number" ?
  2. M

    Comp Sci Write a Java program to convert binary numbers to decimal numbers.

    Use a loop to read (charAt()) each digit (0/1 char) in the input string, scanning from right to left; Use the loop to build the required powers of 2; Use a conditional statement to deal with 0 and 1 separately; Debug using simple input, e.g. 1, 10, 101, and print intermediate values in...
Back
Top