DeMoNC Posted June 3, 2011 Report Share Posted June 3, 2011 Hola a Todos Necesitoo de su ayuda tengo esta tarea para 4 dias mas, no le pego mucho a la programacion y me estoy desesperando jajaja, no les pido que me hagan la tarea muy barsa, pero la idea de como hacerla si porfa. Se ingresan 2 lineas, en la primera linea se ingresa solo "shift down " y en la segunda "shift up", se ordenan en una tabla hacia abajo,(lo de la taba es solo para guiarse) luego se ingresan numeros binarios tomados de a 5, y el programa deberia decodificar el mensaje.(Codigo Baudot), SALUDOS! cualquier ayuda la agradeceria mucho. Estamos recien pasando Structs(como dato). Input The input consists of two parts. The first part is the Baudot character set: line one contains the 32 down-shift characters and line two contains the 32 up-shift characters. (Note: spaces are inserted for the shift characters.) The remainder of the input file consists of one or more messages encoded using the Baudot code. Each message will be on a line in the input file. Each line will consist of 1's and 0's, with no characters between the bits. There can be up to 80 bits per message. The input file will be terminated by end-of-file. The initial state of each message should be assumed to be in the down-shift state. Output The output should consist of one line of text for each message. The output should contain the character representation, as translated using BAUDOT, of each of the messages. Sample Input <T*O HNM=LRGIPCVEZDBSYFXAWJ UQK >5@9 %,.+)4&80:;3"$?#6!/-2' 71( 100100110011000010011111101110000111110111101 001100001101111001001111100001001100010001100110111100000111 Sample Output DIAL:911 NOV 5, 8AM Bit Pattern Down-Shift Character Up-Shift Character 00000 < > 00001 T 5 00010 * @ 00011 O 9 00100 Space Space 00101 H % 00110 N , 00111 M . 01000 = + 01001 L ) 01010 R 4 01011 G & 01100 I 8 01101 P 0 01110 C : 01111 V ; 10000 E 3 10001 Z " 10010 D $ 10011 B ? 10100 S # 10101 Y 6 10110 F ! 10111 X / 11000 A - 11001 W 2 11010 J ' 11011 Shift Down Shift Down 11100 U 7 11101 Q 1 11110 K ( 11111 Shift Up Shift Up Link to comment Share on other sites More sharing options...
lorenzino Posted June 7, 2011 Report Share Posted June 7, 2011 ferres lo sabra :o chan chan! O_o :paco: :paco: :paco: Link to comment Share on other sites More sharing options...
mattaker Posted June 8, 2011 Report Share Posted June 8, 2011 (edited) bbuuuuuuuuu yo dije :trolled: :trolled: :trolled: alguien repondio :naa: :naa: :naa: :dancingjesus: :dancingjesus: :ira: Edited June 8, 2011 by mattaker Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now