CPSC 231: Assignment 1 (Due Monday, July 8)

Weighting = 5%

Total marks = 16

Letter break downs

Letter Score out of 16
A 16
A- 15
B+ 14
B 13
B- 12
C+ 11
C 10
C- 9
D+ 8
D 7
D- 6
F 0 - 5

Introduction to Unix Part 1: Common commands

On Unix workstations in the Computer Science lab complete the following steps:

Learning objectives:

Grading:

Introduction to Unix Part 2: Using a text editor

 Using the Unix text editor of your choice (e.g., Emacs, Xmacs) type a brief document (approximately a page or 2 – 3 paragraphs) that describes what the area of Computer Science is all about.  Note: This report can either be based upon your perceptions and opinions or you can base it upon the material covered in lecture.  If you choose the latter case just be sure that you put it in your own words (and don’t merely cut and paste the notes!)

Print out this document and hand it in (along with the rest of your Assignment 1 submission) – make sure you read the submission guidelines!

Learning objectives

Grading

You will either receive 1 mark for an assignment that fulfills all of the above requirements or 0 for one that does not.

Number systems and logic 

Number conversion: Perform the necessary number conversions in order to fill in the missing values in the table below (4 marks).

Number system

Value in decimal Value in binary Value in Octal Value in Hexadecimal

8

1000

10

 

10

1010

 

A

24.5

 

30.4

18.8

 

11111111

377

FF

 

Non-decimal based math: Perform the following non-decimal based additions and subtractions (2 marks).

0 1 1 1  

1

0 0 1
+ 1  

- 1 1
 

Complements: Perform the necessary number conversions in order to fill in the missing values in the table below (3 marks).

Number system

Unsigned binary value One’s complement value Two’ complement value

0111 1011

0111 1011

 

-01011

 

10101

 

1000

1001

 

Logic: Perform the following logical operations (5 marks)

(AND)

  T F T F T
AND  T T T F T
 

 

(OR)

  T F T F T
OR  T T T F T
 

 

(XOR)

  T F T F T
XOR  T T T F T
 

 

(NAND)

  T F T F T
NAND  T T T F T
 

 

(NOR)

  T F T F T
NOR  T T T F T
 

Learning objectives