+ 13

[Challenge] Real challenge! Letters/Numbers to binary!

Challenge: write a program that takes an input either a word or numbers If it is a word, print it, and find the list of numbers that corresponds to the word. A=1 B=2 ... z=26 so for the word Act the output would be 1320, a=1 c=3 t=20. The program should also take that number, convert it to binary and print that as well.If the input was numbers, then it just converts that number to binary. For the word: Act Output: Act 1320 10100101000 https://code.sololearn.com/ca9us93Wp3DT/?ref=app

13th Feb 2018, 11:40 PM
Erik Umble
Erik Umble - avatar
13 Answers
+ 20
https://code.sololearn.com/chV7sIMm814p/?ref=app
14th Feb 2018, 7:37 AM
LukArToDo
LukArToDo - avatar
14th Feb 2018, 11:14 AM
Cool Codin
Cool Codin - avatar
+ 12
https://code.sololearn.com/ckX1B8TnUkqx/?ref=app
14th Feb 2018, 2:19 AM
KäzÎ MrÎdÚl HøssäÎn
KäzÎ MrÎdÚl HøssäÎn - avatar
14th Feb 2018, 5:54 AM
Ferhat Sevim
Ferhat Sevim - avatar
+ 9
Here's my work on it, hope it meets the requirements, took me a while to do, it's a nice challenge. Thanks : ) https://code.sololearn.com/c3KnZI1gnlv5/?ref=app
16th Feb 2018, 9:15 AM
Ipang
14th Feb 2018, 1:29 PM
🐙evil octopus
🐙evil octopus - avatar
+ 5
15th Feb 2018, 11:36 AM
777
777 - avatar
+ 4
Keep it complicated...with c++^^ https://code.sololearn.com/cHYuEomdCUcE
14th Feb 2018, 10:18 AM
Merlin Mittelbach
+ 4
My try with Java. I hope it works with any words. https://code.sololearn.com/cIsX4Zx1K1RF/#java
14th Feb 2018, 12:58 PM
István Ócsai
István Ócsai - avatar
15th Feb 2018, 2:40 PM
bedawang
bedawang - avatar
15th Feb 2018, 9:45 AM
Harsh Pandey
Harsh Pandey - avatar
0
How does that pigeon guy do everything in just one line?
15th Feb 2018, 10:39 PM
Erik Umble
Erik Umble - avatar