MONT 104S Perception and Virtual Reality

    College of the Holy Cross, Fall 2008

    Home | | Schedule | | Assignments | | Lecture Notes

    Assignment 7

    Due: Wednesday, November 12, in class


    Problem 1: Binary numbers

    Parts a - d: Convert the given binary numbers into decimal numbers. Show your work.
    a) 110101
    b) 1111
    c) 10101100
    d) 100001000


    e) If you have a binary number that consists of all ones and no zeros, what is a simple way to compute its decimal value? I.e. if the number has n 1's, what is a simple formula for it's value? (Hint: The formula is short).

    Examples:
    n = 2, Binary number = 11
    n = 3, Binary number = 111
    n = 5, Binary number = 11111


    Problem 2: Hexadicimal numbers

    Convert the following hexadecimal numbers into decimal numbers. Show your work.
    a) 1B
    b) 32
    c) A3
    d) 10E
    e) 200


    Problem 3: Binary to Hexadecimal

    Convert the following binary numbers to hexadecimal. Show your work.
    a) 11001001
    b) 00010101
    c) 01111110
    d) 110101100001
    e) 100000000001


    Problem 4: Screen resolution, image size and memory
    Suppose you have an image that measures 100 pixels in width and 150 pixels in height. Your monitor is 15 inches in width and 13 inches in height. The monitor resolution has 1500 pixels x 1300 pixels (width x height). Answer the following questions. Show your work.

    a) What is the horizontal resolution of the monitor in ppi (pixels per inch)?

    b) What will be the width and height of the image in inches when displayed on the monitor?

    c) What would the width and height of the image be (in inches) if displayed on a monitor that had a resolution of 75 ppi (for both horizontal and vertical resolution)?

    d) If the bit depth of the image is 8, how many colors can be represented in the image?

    e) If the bit depth of the image is 8, how much memory, in bytes, will the image take up?


    Home | | Schedule | | Assignments | | Lecture Notes


    Constance Royden--croyden@mathcs.holycross.edu
    MONT 104S, Perception and VR
    Date Created: January 26, 2008
    Last Modified: November 6, 2008
    Page Expires: November 6, 2009