Assignment 1: Computers, data and programming Value: 15% Due Date: 06-Sep-2019 Return Date: 01-Oct-2019 Length: Submission method options: Alternative submission method Task back to top Total marks: 30 Answer the following Questions Question 1. a) A Computer uses IEEE-754 single precision format to represent floating points. What value (in decimal) the computer represents if the floating point is represented using the following binary digits. Show all the steps used in finding the answer. [3 marks] 0 01111110 10100000000000000000000 b) Convert the following numbers. (Please show all steps; no marks will be awarded if no steps are shown) [1.5 x 4 = 6 marks] i) 0xAD9 into 3-base representation ii) 4518 into 2-base (binary) representation iii) 123.35 into octal representation (up to 3 octal points) iv) 14.358 into decimal representation Question 2. Write a MARIE program that accepts an integer from the user, and if it is a prime number the program will output 1, otherwise, the program will output 0. Examples: If the user input is 17, the output would be 1 If the user input is 2, the output would be 1 If the user input is 15, the output would be 0 If the user input is -2, the output would be 0 You should write and run the program using MARIE simulator. Add enough comments to understand your code. You do not have to include the .mas file in the submission. Instead, the code should be presented as a word-processed section in the assignment, not as an image. Insert images to show you have tested the code with several possibilities. [10 marks] Question 3. a) Explain with an example of what is meant by high-order interleaving and low-order interleaving in memory organisation. [3 marks] b) Suppose we have a memory consisting of 32 4Kx8-bit chips. Show the address structure and module organisation when i. high-order interleaving is used ii. low-order interleaving is used. [8 marks] Rationale back to top This assessment task will assess the following learning outcome/s: be able to investigate and describe the essential elements of a computer and their functionalities. be able to apply an understanding of data representations and calculations to practical situations. be able to develop an elementary computer program. Marking criteria and standards back to top Criteria HD (85%-100%) DI (75%-84%) CR (65%-74%) PS (50%-64%) FL (0%-49%) Comprehension of data representation and application of computer math calculations All calculations were correct. Appropriate mathematical symbols were used, and all steps/workings were shown. Almost all Calculations were correct except a minor error. Most of the calculations are correct. However, few steps were omitted. The methods used to solve the problem were correct, but there were one or two miscalculations. At least half of the calculations were correct. Some incorrect answers were the result of errors at some stage of the calculation, which propagated with the next steps. Some of the steps showed the basic understanding the numbering system. No attempt or most of the calculations were incorrect. Failed to show the steps of calculation. Either the answers were incorrect or the steps were wrong. Simulating and investigating of internal operations of CPU and it's instruction execution (programming skills) The code meets the specification. Code is well documented with comments. The program produces correct outputs in every input situations. Code meets specification and is well documented with comments. Minor errors in explanations. Code meets specification. Most of the time produces correct results, however does not produce correct results for special inputs. Little documentation and comments. Code meets specification but has errors in operation. Little commenting. Basic idea is expressed by the codes and explanations. Code does not meet the specification. Comprehension of internal elements of computer organisation Answers are corrects. All steps are correctly shown. All codes are accurately written. All answers are correct with a minor error. All codes are correct except a minor error. Few minor errors in calculating the address spaces. The steps show the clear understanding of the address space calculation. All codes written correctly however the order were not maintained correctly. The final result is not correct, however the calculations show the basic understanding of the instruction set architecture. More than half of the codes are correct. No attempt or incorrect calculations showing no or minimum understanding of the topic. Codes do not meet the specification. Presentation back to top File naming convention: When you upload files to the Turnitin for this subject, please use - SUBJECT CODE, SURNAME, STUDENT ID, ASSESSMENT NUMBER, SESSION. For example - ITC544 PATEL 11554466 A1 201960.doc Please also adhere to the following formatting rules: 1. Please compose your answers to the questions in a document file (doc or docx format). Please do not submit in pdf formats. Please upload the document in the Turnitin within deadline. 2. For Q2 you need not to submit a .mas file. Instead paste your code as part of the word document that can be checked for similarity. 3. The first page (cover page) of the document file should have the following information clearly mentioned: a. Your full name b. Your Student ID c. Subject Code (ITC544) d. Assessment item number and name (Assignment 1: Computers, data and programming) 4. Each page should have page numbers in “page x of y” format (including the cover page).