Data(1)-2.ppt - cosc175/data 1 Data • Comprised of...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
cosc175/data 1 Data Comprised of constants and variables Information stored in memory Each memory location has an address Address - number identifying a location Can do 2 things to data Read - doesn't change contents Write - replaces contents
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
cosc175/data 2 Storage Capacity bit - 0 or 1, electrical states - on and off nibble - 4 bits byte - 8 bits, holds 1 character word - number of bits handled as a unit for a particular computer system K,Kb – kilobyte = 1024 bytes Mb - Megabyte - 1024*1024, millions of bytes Gb - Gigabyte - 1 billion bytes
Image of page 2
cosc175/data 3 Numbering Systems Numbering system BASE Digits Decimal 10 0 - 9 Octal 8 0 - 7 Hexadecimal 16 0 – F Binary 2 0 - 1
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Binary Octal Hex Decimal 0000 0 0 0 0001 1 1 1 0010 2 2 2 0011 3 3 3 0100 4 4 4 0101 5 5 5 0110 6 6 6 0111 7 7 7 1000 10 8 8 1001 11 9 9 1010 12 A 10 1011 13 B 11 1100 14 C 12 1101 15 D 13 1110 16 E 14 1111 17 F 15 10000 20 10 16
Image of page 4
Base-10 Example The decimal number 5872 is interpreted as follows. 5 0 0 0 0 8 0 7 0 2 + 5 7 8 2 5 5 7 8 2 = 5 7 8 2 x 10 3 + x 10 2 + x 10 1 + x 10 0 = 5 + 7 8 2 x 1000 + x 100 x 10 + x 1 = 5000 70 800 2 + + + = 5872
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
cosc175/data 6 Multiply the 1's in a binary number by their position values, then sum the products. Example: 1 1 0 1 0 2 0 x 2 0 = 0 1 x 2 1 = 2 0 x 2 2 = 0 1 x 2 3 = 8 1 x 2 4 = 16 -------- = 26 10 Binary to Decimal 4 3 2 1 0 Position
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern