Assignments | Class Photo | Course Home | Schedule & Lecture Notes | Submit

Saint Louis University

Computer Science 115
Introduction to Computer Science
Michael Goldwasser

Fall 2004

Dept. of Math & Computer Science

Assignment 02

Number Systems and Arithmetic

Contents:


Overview

Topic: Number Systems and Arithmetic
Related Reading: Ch. 2
Due: 8pm Thursday, 9 September 2004


Internet Requirements

You will not need an Internet connection for completing the assignment, other than for submission.


Practice Problems


Problems to be Submitted (20 points)

First, we wish to verify that you were successful in learning to use the Windows (or similar) calculator and/or the Meyer software. These first problems are based on numbers that are intentionally too large to do by hand in a timely manner.

  1. (2 points)

    Convert 4048891811(base 10) to hexadecimal.

  2. (2 points)

    Convert 2114112(base 8) to decimal.

  3. (2 points)

    Perform the following hexadecimal addition:
    52E4F03B + 902DC47

Next, we wish to verify that you were successful in learning to do these calculations by hand. For this problems, we intentionally use various bases that cannot be checked using the Windows calculator or Meyer software. (If you have some other calculator which works with various bases, please do not use it! You need to be able to do this by hand)

  1. (2 points)

    Convert the number 2532(base 6) into its base 10 representation.

  2. (2 points)

    Convert the number 349(base 10) into its base 6 representation.

  3. (3 points)

    Express in base 16, the sum
    FEDCBA092(base 16) + 32154AAAA(base 16)

  4. (3 points)

    Express in base 7, the sum
    4302463(base 7) + 513460(base 7)

  5. (4 points)

    At the end of Ch. 2 there are a series of "Thought Questions." Pick any one question to answer. The length of your answer should be appropriate for the question, however I envision answers in the range of 1/2-page to 1-page.

Overall, please type your answers to all of the problems in a single document to be submitted electronically. Please see details about the submission process.


Extra Credit (2 points)

Converting from binary to octal is easy because 81 = 23 (thus a correspondance exists between 1 octal digit and 3 binary bits).

Similarly, converting from binary to hexadecimal is easy because 161 = 24 (thus a correspondance exists between 1 hexadecimal digit and 4 binary bits).

It so happens that converting from base four to hexadecimal is straightforward because 161 = 42 (thus a correspondance exists between 1 hexadecimal digit and 2 digits in base four).

Convert the number 6F9C3(base 16) into its base 4 representation.


CSA-115, Fall 2004
Michael Goldwasser
goldwamh at our university domain

Last modified: Friday, 27 August 2004
Assignments | Class Photo | Course Home | Schedule & Lecture Notes | Submit