Você está na página 1de 3

NATIONAL UNIVERSITY OF SINGAPORE DEPARTMENT OF MECHANICAL & PRODUCTION ENGINEERING

3241 - TUTORIAL 1 T1.1 Convert the following numbers to decimal number 1) 110100112 5) 1011.10112 T1.2 T1.3 2) 34078 6) 36.778 3) 13DF16 7) D3.F16 4) 4567 8) 43.25

Convert the following decimal number to binary, octal and hexadecimal 1) 500 2) 0.5625 3) 55.3125 4) 0.2 5) 3.5 Convert the following decimal number to straight binary code, 8-4-2-1 BCD Code, Excess-3 Code, Biquinary Code. 34, 65, 219 Convert Gray Code from the following straight Binary Code. 0011, 101110, 1011101, 00111001 Convert straight Binary Code from the following Gray Code. 011011, 01000, 1110111, 1100 For which of the set of the ASCII characters A-Z does the code have the largest and smallest numerical value?

T1.4 T1.5 T1.6

T1.7 Write these characters in increasing numerical order according to their ASCII representations: R 5 $ C J 9 2. T1.8 T1.9 How are the ASCII codes for upper and lower case letters similar? How are they different? Decode this ASCII message: 33 32 34 31 20 54 75 74 6F 72 69 61 6C.

T1.10 Translate this message What's up, doc? into ASCII with (a) even parity and (b) Hamming Code T1.11 Given the following integer numbers, how are they stored in the memory as an 8-bit integer, 8-bit unsigned integer, 16-bit integer and 16-bit unsigned integer: 34, 563, -356, -235, 67, -33 T1.12 How to use a 32-bit word to represent a floating point number 45.6? What is the range and resolution you can have? T1.13 Perform binary arithmetic on each of the following using signed 8-bit integer. a) 11710 - 12310 b) 9510 - 6310 d) 10510 + (-12010) c) -9110 + 2410

T1.14 Assessed Tutorial: A Hamming coded BCD reads p0 p1b3 p2 b2 b1b0 . Assuming that even parity is used, what is the actual BCD code? (Please refer to your assigned code on next page.)

3241 - Tutorial 1

January, 2012

Page: Tutorial 1.1

ME3241 Name
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 AARON ENN YOUNG AH-TIENG ANDRE SETIAWAN ANDREW DOUNG CHEUNG HO BRYAN ALTMAN CANGGIH SANTOSO CHAN JING REN EUGENE CHENG YOULONG WINSTON CHIA ZHEN WEI CHOONG GUO WEI FAHAD IBN AZAM FAIZAN ABID GAN LIANG AN ERIC GOH WEI MING CLEMENT GUO RUILONG HARIHARAN VISWANATHAN HITESH SURESH CHANDIRAMANI IJAZ ALI QUWATLI IKHSAN PUTRA IBRAHIM K.PRASANNA VENKATESAN LEE YEE CHIAN LEONG FEI PING JASLYN LEOW POH JIN LIOU CHENG XIANG MARCELLINO NAGATA SUYONOPUTRO MAULI SHILAN THAKER NANDHAN KARUNAMBAL VENUGOPALAN NG CHONG PENG NG JIAN MIN PANG TAO QIU LIYI RAHUL KONERU RAMASAMY SATHEESH RAMKUMAR GOVINDARAJAN ROBERT ANTON BICHSEL SARA LIEW KAR MUN SHEN ZIHONG SHETH RUSHABH ABHILASH SO KAI MAN STEPHAN EUGEN MAXIMILIAN LELLEK STEVE SIM KAR KIAT TAN HUIYI TRACY TAN YAN RUI TING YONG HAO JACKSON U.C RAMEES VARADARAJAN GANESAN VARADHARAJAN VISWANATHAN WANG WEIBIN WASEEM SHERIFF WONG TIAN'EN WOO LIK LING XIE LIANGPENG YEO POH CHONG ZAC SURESH ARACKAKUDYIL ZHOU XIONG

Code
0101000 1110010 1001011 0100111 1100000 1110000 0011101 0101111 0001111 1001101 1101000 0001111 1111000 0010001 0011111 0100001 0000011 1110000 1100110 1101010 1001101 1000110 0100111 1010000 1001000 1110000 0100110 1101000 0101010 1110110 0011000 0011000 1110010 0101011 1001101 1101110 1101110 1001111 1000011 0001111 0101110 0100001 1101000 1100011 1001011 1101011 0001011 1100101 0100101 0101001 0011101 0110101 1100110 0001100

3241 - Tutorial 1

January, 2012

Page: Tutorial 1.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

ME3241E Name CHEN WEI FANG XIAOPING HUANG HANBIN KONG PIENG NAM (JIANG BINGNAN) LIN SHAODUN LU AIGUO NG JIA HE (HUANG JIAHE) Qiu Liyi CHEE VUI KET SEVARAYAN SYED SULAIMAN HAJA MOHIDEEN TAN KENG ENG CHRISTOPHER THET WIN SHEIN WANG LU WANG SOON MENG WONG YI HUAI XIAO YONGJIA ZHAO YU ZHU XINKUAN

Code 0100110 0001111 0000011 1100001 1110001 1101001 0100111 1101001 0001001 1100001 1110110 1101001 1111000 1101000 0110101 1100000 0001001 0000011

3241 - Tutorial 1

January, 2012

Page: Tutorial 1.3

Você também pode gostar