Write a marie program that accepts an integer from the user

Assignment Help Other Subject
Reference no: EM132355232

Assignment 1: 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.

001111110 10100000000000000000000

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

i) OxAD9 into 3-base representation

ii) 4518 into 2-base (binary) representation

iii) 123.35 into octal represent ation (up to 3 octal points)

iv) 14.358 into decimal repres entation

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: EM132355232

Questions Cloud

Discuss the prevalence of each of the health problems : Choose two at-risk health issues that regular physical exercise and activity can help prevent and manage. Discuss the prevalence of each of these health.
Write a program that translates a letter grade into a number : Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -.
Does benefit of incorporating a change model outweigh effort : Why is it important to incorporate a theory or model related to change when implementing practice changes? Does the benefit of incorporating a change model.
Define what are two ways to address the problem : Consider an obstacle or barrier to the implementation of evidence-based practice you identified in last week's discussion. What are two ways to address this.
Write a marie program that accepts an integer from the user : Explain with an example of what is meant by high-order interleaving and low-order interleaving in memory organisation - Write a MARIE program that accepts
What are three important clauses that prospective franchisee : What are three important clauses that prospective franchisees need to carefully consider before entering a franchise arrangement. Why are they important?
Nokia to give away ideas and innovations : Adapted from Research Technology Management, 9/1/2009 Nokia has decided to give away some businesses out of them. The Finnish telecommunications
Faces challenges that have required them to change radically : Today's organization faces challenges that have required them to change radically. Among these are globalization, diversity, social responsibility
Develop the expertise to resolve business problems : Develop the expertise necessary to formulate practical and usable research questions to resolve business problems and add to business knowledge

Reviews

len2355232

8/9/2019 10:53:25 PM

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 the word document that can be c 3. The first page (cover page) of tl information clearly mentioned: a .mas file. Instead paste your code as part of hecked for similarity. e document file should have the following a. Your full name b. Your Student ID c. Subject Code (ITC544) d. Assessment item number an programming) d name (Assignment 1: Computers, data and 4. Each page should have page numbers in "page x of y" format (including the cover page).

len2355232

8/9/2019 10:53:03 PM

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. Answers are corrects. All steps are correctly shown. All codes are accurately written.

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