



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A part of the bme303 introduction to computing course materials. It covers various topics including hexadecimal representation, floating point notations, and boolean algebra. Students will learn how to convert decimal to binary and hexadecimal, understand the ieee standard for floating point notations, and explore boolean logic and operators.
Typology: Study notes
1 / 43
This page cannot be seen from the preview
Don't miss anything!




































BME303 Intro. to Computing
Convert binary 0011011011010101 to hex 0x36D50011 0110 1101 0101^3 6 D^
5
Computers represent real numbers using Floating Point notationsDecimal: 2007 = 2.007·
Binary: 100.11 = 1.0011·
20 19 18 17 16 15 14 13 12 11 10
9 8 7 6 5 4 5 2 1 0
-^ find the exponential term - store the number in the proper formatS exponent (8-bit)^ fraction (23-bit) 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
16 15 14 13 12 11 10 9 8 7 6
5 4 5 2 1 0
BME303 Intro. to Computing Floating Point Notation
20 19 18 17 16 15 14 13 12 11 10
9 8 7 6 5 4 5 2 1 0
Sexponent−127 (−1)·1.fraction·
(1^ ≤^ exponent^ ≤^ 254)
BME303 Intro. to Computing Floating Point Notation Conversion: Decimal to Binary 0 133−127^ (−1)·1.1011·2= +1101100 = 108
20 19 18 17 16 15 14 13 12 11 10
9 8 7 6 5 4 5 2 1 0
-^ First convert to binary •^ Then convert to exp and fraction
BME303 Intro. to Computing Floating Point Notation Convert Decimal 0.625 to Binary Step 1 : .625 x 2 = 1.25, the first binary digit to the right of the point is a 1. Step 2 : .25 x 2 = 0.50, the second binary digit to the right of the point is a 0.
•American Standard Code for Information Interchange•ASCII: Maps 128 characters to 7-bit code.–^ both printable and non-printable (ESC, DEL, …) characters^00 nul^10 dle^20 sp
`^70 p 01 soh^11 dc1^21!^31
41 A^51 Q^61 a^71 q 02 stx^12 dc2^22 "^32
42 B^52 R^62 b^72 r 03 etx^13 dc3^23 #^33
43 C^53 S^63 c^73 s 04 eot^14 dc4^24 $^34
44 D^54 T^64 d^74 t 04 eot^14 dc4^24 $^34
44 D^54 T^64 d^74 t 05 enq^15 nak^25 %^35
45 E^55 U^65 e^75 u 06 ack^16 syn^26 &^36
46 F^56 V^66 f^76 v 07 bel^17 etb^27 '^37
47 G^57 W^67 g^77 w 08 bs^18 can^28 (^38
48 H^58 X^68 h^78 x 09 ht^19 em^29 )^39
49 I^59 Y^69 i^79 y 0a^ nl^ 1a^ sub^ 2a^ *^ 3a^ :^
4a^ J^ 5a^ Z^ 6a^ j^ 7a^ z 0b^ vt^ 1b^ esc^ 2b^ +^ 3b^ ;^
4b^ K^ 5b^ [^ 6b^ k^ 7b^ { 0c^ np^ 1c^ fs^ 2c^ ,^ 3c^ <^
4c^ L^ 5c^ ^ 6c^ l^ 7c^ | 0d^ cr^ 1d^ gs^ 2d^ -^ 3d^ =^
4d^ M^ 5d^ ]^ 6d^ m^ 7d^ } 0e^ so^ 1e^ rs^ 2e^.^ 3e^ >^
4e^ N^ 5e^ ^^ 6e^ n^ 7e^ ~ 0f^ si^ 1f^ us^ 2f^ /^ 3f^?^
4f^ O^ 5f^ _^ 6f^ o^ 7f^ del
-^ A Boolean expression is a condition•^ A Boolean expression is any expression that evaluates to eithertrue or false^ – Is the expression 1+3 a Boolean condition? •^ Examples of Boolean expressions:^ 5 > 3 (true, or 1) 5 > 3 (true, or 1) xA > x2X < YY = 20052003 > 2005 (false, or 0) • Bits may be interpreted as logical values (sometimes referred to as truth values ), where 1 means TRUE and 0 means FALSE