Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 how do i make a program that converts binary digits?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
prima_rory




PostPosted: Wed Apr 07, 2004 7:15 pm   Post subject: how do i make a program that converts binary digits?

my teacher assigned us a task to write a program which converts binary digits to decimals...can you please help me and suggest anything easy i can add into the program?
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Wed Apr 07, 2004 7:19 pm   Post subject: (No subject)

have it so it can covert any base to any base. Wink
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Paul




PostPosted: Wed Apr 07, 2004 7:22 pm   Post subject: (No subject)

Well if I were to make it, I'd get the length of the binary number, then use an array to hold the calculated "chart" up to that number. you know like
1, 2, 4, 8, 16 (is that it?) except in reverse, then get the sum of the product of each digit to the chart.
Delos




PostPosted: Wed Apr 07, 2004 8:07 pm   Post subject: (No subject)

Look here (I used the "Search" button...amazing...)

http://www.compsci.ca/v2/viewtopic.php?t=3245
the_short1




PostPosted: Thu Apr 08, 2004 10:54 pm   Post subject: (No subject)

heheheh.... not to mention the scientific calculator on ur computer (go to accessories then calculator...) and click on view scientific... wow...

decimal to hex,binary,etc... and back and forth... kinda cool eh!...

yea... the search button is AMAZING! if only more ppl used it...
prima_rory




PostPosted: Mon Apr 12, 2004 6:01 pm   Post subject: (No subject)

Thank you Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: