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

  Recognize opportunity for entrepreneurship of organization

Come up with the original concept for your own entrepreneurial, growth-oriented venture. Recognize the opportunity for entrepreneurship in your own organization.

  Analyze the key components of three sources of law

As a chief operating officer of a hospital, you have been tasked with opening a new ambulatory care center in your city.

  Write about an environmental health and safety project

Write about a hazardous materials incident or an environmental health and safety (EHS) project that involves a material(s) with a hazard(s) that falls under the hazard classification that we have studied so far.

  In 1788 alexander hamilton and james madison who had both

in 1788 alexander hamilton and james madison who had both played active roles at the constitutional convention worked

  Briefly outline the forms of social conflict

Briefly outline the forms of social conflict discussed by Vilfredo Pareto and Karl Marx.

  How can leadership approaches influence practice change

Interview two nurses from any location or specialty who you consider to be leadersin the profession. How can leadership approaches influence practice change

  What public financing resources are available to

our health or the absence of such can be very expensive. many vulnerable populations simply do not have private funds

  Explain the normative and applied prevailing justice models

Create an informative voice-over PowerPoint presentation that explains the normative and applied prevailing criminal justice models of ethical reasoning.

  Stereotypes within the culture

Ageism is defined as prejudice held against an individual based upon their age. Such prejudice is typically based upon stereotypes within the culture.

  Design a depth of anaesthesia

CSC8003 - Machine learning - UNIVERSITY OF SOUTHERN QUEENSLAND - Anaesthetic Data Analysis - design a Depth of Anaesthesia (DoA) index based on the training

  Assume for the sake of argument that a technological

assume for the sake of argument that a technological breakthrough has made electric vehicles both highly efficient and

  Edu5edl synopsis of assessment task two and its context

EDU5EDL Synopsis of assessment task two and its context, 1. Analysis of school data provided to identify two or three areas on which you will focus to improve school and student performance...

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