Write a MARIE program that accepts an integer from the user

Assignment Help Other Subject
Reference no: EM132364652

Assignment - Computers, Data and Programming

Task - 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.

0 01111110 10100000000000000000000

b) Convert the following numbers. (Please show all steps; no marks will be awarded if no steps are shown)

 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.

Question 3 - a) Explain with an example of what is meant by high-order interleaving and low-order interleaving in memory organisation.

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.

Rationale - 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.

Reference no: EM132364652

Questions Cloud

Broussard additional funds needed for the coming year : Use the AFN equation to forecast Broussard's additional funds needed for the coming year. Round your answer to the nearest dollar.
How do you calculate the present value of an annuity : How do you calculate the present value of an annuity? A perpetuity? A growing perpetuity? Which would you prefer?
Discussing partnering-developing a customer focus : You will discuss how a company begins to build a culture of total quality management by discussing partnering, developing a customer focus,
Create a diagram for a better approach for compliance : Proper network design provides for compliant security, not only isolating users and their traffic, but also preventing attackers from easily traversing.
Write a MARIE program that accepts an integer from the user : Assignment - Computers, Data and Programming - Write a MARIE program that accepts an integer from the user, and if it is prime number the program will output 1
Explain why you used the estimate value for the observation : What are the best values of the intercept and slope relating to the data and Explain why you used the estimate (plugged) value for the observation itself
Explain each risk impact on the organization : Considering the aspects or components of the cyber domain, choose five potential vulnerabilities or threats facing the organization. Explain each risk's impact.
Discuss ways to describe risk in detail : Discuss ways to describe risk and what are some methods used to handle risk that can be put into your risk management program?
The approach mars-incorporated used to implement erm : The approach Mars, Incorporated used to implement ERM, and chapter 5 presented the University of California Health System's ERM development.

Reviews

len2364652

9/2/2019 2:52:57 AM

Marking criteria and standards - 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. 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. Comprehension of internal elements of computer organisation - Answers are corrects. All steps are correctly shown. All codes are accurately written.

len2364652

9/2/2019 2:52:51 AM

Please also adhere to the following formatting rules: 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. 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. The first page (cover page) of the document file should have the following information clearly mentioned: Your full name, Your Student ID, Subject Code (ITC544), Assessment item number and name (Assignment 1: Computers, data and programming) and Each page should have page numbers in “page x of y” format (including the cover page).

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd