CS 1620 Assignment #1 Fall 2000

How to handin.
Due: Thursday Sept 28, 2000 @ midnight
Note: Late assignments will be accepted only with the instructor's pre-approval.
  1. Convert to binary and then to hexadecimal:
    1. 47
    2. 83
    3. 123
  2. Convert to hexadecimal and then to binary:
    1. 1063
    2. 1644
  3. Add and subtract in binary:
    1. 1111 and 1001
    2. 1010101 and 111011
  4. Add and subtract in hexadecimal:
    1. 1B2A and 10CD
    2. 1B3CA4 and EF3B
  5. Give the 5 bits 1's complement and 2's complement representations of integers from -15 to +15
  6. Apply the software engineering method for converting a number of seconds into days, hours, minutes and seconds.
  7. The Greyhound company wants a program for generating automatically a ticket fare. Given a fixed kilometer fare, apply a software engineering method for producing the ticket fare given the distance between two cities.
  8. A parking lot with fence and gates has an automatic cashier at the exit. Apply the software engineering method for the parking lot.

Assignment List | Next | Computer Science 2620
Department of Mathematics & Computer Science
University of Lethbridge Home Page