Assignment help!

...let us know what you think, free speech!
Locked
TheKingOfHearts
Moderator
Moderator
Posts: 901
Joined: 18 Sep 2006, 16:00
17
Location: on my Throne
Contact:

Assignment help!

Post by TheKingOfHearts »

its due tomorrow.

and its about writting a application that converts text to binary numbers

two ways that we are allowed to do it.
1. Straight up using the way to convert to binary
2. Thru Base16 [way way way way way harder and im clueless about this way than the 1st one]

i know how to do it but it would be hard to figure out what kind of a Pseudo code would i write so i dont fail that test.

its in Visual Basic. but if you know C++ you can still gimme the main idea and ill be able to write it back to VB.

dont do this assignment for me!
id rather have some tips and pseudo code than that.

any help by tomorrow is appreciated!

edit: would it work if its converted into ASCII? Because if so it would be easy making each letter into a number then using a previous code we wrote to convert numbers to binary?
Last edited by TheKingOfHearts on 29 Nov 2007, 18:15, edited 1 time in total.
[url=http://img338.imageshack.us/img338/2034/oopsrg8.gif]/sig[/url]

User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Post by Big-E »

I think you may want to utilize the modulo operator, and a simple if else statement.

TheKingOfHearts
Moderator
Moderator
Posts: 901
Joined: 18 Sep 2006, 16:00
17
Location: on my Throne
Contact:

Post by TheKingOfHearts »

we havent gotten that far into VB (but i googled it)

although i think this would be used for next week's lab assignment because we are making a string to hex and vise versa app.

i like the idea and ill research it.
"In computing, the modulo operation finds the remainder of division of one number by another."
that would come useful when i do divisions by two and then leave 1 or 0.
[url=http://img338.imageshack.us/img338/2034/oopsrg8.gif]/sig[/url]

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

¯\_(ツ)_/¯ It works on my machine...

bubzuru
.net coder
.net coder
Posts: 700
Joined: 17 Apr 2007, 16:00
17
Contact:

Post by bubzuru »

this is wot you want but its in vb.net

http://codeviewer.org/view/code:56

if you want i will convert it to vb for you :lol:

TheKingOfHearts
Moderator
Moderator
Posts: 901
Joined: 18 Sep 2006, 16:00
17
Location: on my Throne
Contact:

Post by TheKingOfHearts »

nah too late. i passed the test for sure.

someone should close this topic which is now useless.
[url=http://img338.imageshack.us/img338/2034/oopsrg8.gif]/sig[/url]

Locked