CMPS 002 - Computer Literacy

Prof. Paulo Franca

CyberSlug Rules!

Classes

Class Syllabus

Grading Policy

Labs

Interact

Login

  • enter system
  • get attendance
  • submit work
  • take lab quiz
  • check scores

Help

Help me!

Links

Staff only

 

 

 

Datacare   Ahshay

 

Numbers - ASCII

  • 1 byte = 1 character in ASCII
  • 1 byte 0..9 single digit
  • 2 bytes 2 characters 0..99 two digits
  • 4 bytes 4 characters 0..9999 four digits

Numbers - binary math

  • 4 bytes = 32 bits = 2^32 ~ 4 billion
  • slightly larger than what 4 number characters can represent

Binary Math

  • base 2
  • 0 ----- 0 0 0 0
  • 1 ----- 0 0 0 1
  • 2 ----- 0 0 1 0
  • 3 ----- 0 0 1 1
  • 4 ----- 0 1 0 0
  • negative and positive numbers can be represented - use the first bit to indicate - or + (0 or 1)
  • Big numbers use scientific notation
  • 3 * 10^120 stored as 3, 120 - two numbers