Module Code :- CP40053E / CP4CS53E
Module :- Computer Architecture
Title :- Coursework
Weighting :- 40%
Element :- 1
Type :- Coursework
Learning outcomes:
1- Apply knowledge of the fundamentals of computer systems and modern operating systems.
2- Apply knowledge of low-level data types and operations.
3- Demonstrate experience with using an assembly language.
CP40053E / CP4CS53E Computer Architecture Assignment – UK
For this coursework you should create a document containing your answers to the questions below.
You can find a template in the Assessments section of the module on Black board.
Coursework should be submitted as either a Word or PDF document. Photos or scans
of handwritten work will not be accepted and marked.
Question 1 – Binary
a) Convert the following decimal number to 8-bit two’s complement binary. Show in full how you worked out your answer.
-73
b) Convert the following binary number to decimal.
You should assume that the number is given in two’s complement representation. Show in full how you worked out your answer and explain why your answer is a positive or negative number.
10000111
c) Add together the following two binary numbers and give the result in decimal. You should assume that both numbers are given in two’s complement representation. Show in full how you worked out your answer.
01010011 + 10011001
CP40053E / CP4CS53E Computer Architecture Assignment – UK
Question 2 – Little Man Computer
Write code for the Little Man Computer to perform the following tasks. For both tasks you should submit:
a) Your code in the text of your submitted document NOT as a screenshot together with comments explaining what each line of code does.
Your comments must include your name and student ID number for example:
b) A screenshot of the Little Man Computer simulator showing your code and the output when you run your code. You must include the comment showing your name and ID number but you do not need to show the other comments in your screenshot.
CP40053E / CP4CS53E Computer Architecture Assignment – UK
You should use the LMC simulator at this website:
Task 1: Ask the user for two numbers. Print out the answer to first number minus the second number followed by the answer to the second number minus the first number.
Task 2: Ask the user for three numbers and print out all three from largest to smallest.