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.
- Convert to binary and then to hexadecimal:
- 47
- 83
- 123
- Convert to hexadecimal and then to binary:
- 1063
- 1644
- Add and subtract in binary:
- 1111 and 1001
- 1010101 and 111011
- Add and subtract in hexadecimal:
- 1B2A and 10CD
- 1B3CA4 and EF3B
- Give the 5 bits 1's complement and 2's complement
representations of integers from -15 to +15
- Apply the software engineering method for converting a number of
seconds into days, hours, minutes and seconds.
- 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.
- 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