ENGR 101 Lecture Notes - Lecture 17: Operand, Odometer, Nibble

24 views4 pages
24 Jan 2017
School
Department
Course

Document Summary

How do we structure the data that we are acting on. All data inside the computer is represented by bits. Bits can have only two values 0 or 1. 4 bits: 000 001 010 011 100 101 110 111. Base 2 is a number system like base 10. Computer has base 2 result is : 110001 49. Use the column method recall that 10 in binary equals 2. 0000 this is like the odometer on your car. Such overflow can lead to funny unexpected results. 1111+0001=0000 this implies that 1111 in our 4 bit representation could stand for -1. Numeric data types in c++ floating numbers- have decimal points in them they are approximations. 5 comes before 6 and 7 comes after. Represents an individual character by an integer using an encoding. 1 byte (8 bits) supports 128 characters numbered 0 through 127. More about ascii letters are contiguous as are digits this is not true in some character sets.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents