Develop an elementary computer program

Assignment Help Basic Computer Science
Reference no: EM132291935

Assignment: Computers, data and programming

Answer the following Questions

Question 1.

a) Determine the value of base b if (152)b = 0x6A. Please show all steps.

b) Convert the followings: (Please show all steps; no marks will be awarded if no steps are shown)

i) 0xBAD into 3-base representation

ii) 3217 into 2-base (binary) representation

iii) 1235 into octal representation

iv) 21.218 into decimal representation

c) Given a (very) tiny computer that has a word size of 3 bits, what are the lowest value (negative number) and the highest value (positive number) that this computer can represent in each of the following representations?

i) One's complement

ii) Two's complement

iii) Signed Magnitude

Question 2.

a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 114, ... etc.

By definition, the first two numbers in the Fibonacci sequence are 0 and 1, and each subsequent number is the sum of the previous two. We define Fib(0)=0, Fib(1)=1, Fib(2)=1, Fib(3)=2, Fib(4)=3, etc. The first 22 Fibonacci numbers given below:

Fib(0) Fib(1) Fib(2) Fib(3) Fib(4) Fib(5) Fib(6) Fib(7) Fib(8) Fib(9) Fib(10)
0 1 1 2 3 5 8 13 21 34 55
 
Fib(11) Fib(12) Fib(13) Fib(14) Fib(15) Fib(16) Fib(17) Fib(18) Fib(19) Fib(20) Fib(21)
89 144 233 377 610 987 1597 2584 4181 6765 10946

 

Write a MARIE program to calculate Fib(n), where the user inputs n. For example, if the user inputs 7, the program outputs the value 13; if the user inputs 15, the program outputs the value 610; if the user inputs 20, the program outputs the value 6765 and so on. You need to write and run the program using MARIE simulator. Please include appropriate comments to make your code readable.

b) For some values of n, your program will not produce correct results. You can check this by gradually increasing the values of n and checking for the correct outputs. What is the maximum value of n for which your program produces a correct result? Why? Please comment on this.

Question 3.

a) What are the 'interrupts' in a computer system? Describe the approaches to deal with multiple interrupts in a system.

b) Analyse the benefits of using a multiple-bus architecture compared to a single-bus architecture for a computer system.

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.

Verified Expert

This is an assignment about marie program and digital electronics. There are some problems for number system conversion, a marie program for fibonacci series is written along with simulation output, simulation process and simulated file prepared.

Reference no: EM132291935

Questions Cloud

Example of the syntax used for the order : The ORDER BY Clause is an SQL clause that is helpful when trying to order the output of a SELECT query in either descending or ascending order.
Discuss the health care support systems : You are admitting a 19-year old female college student to the hospital for fevers. Using the patient information provided, choose a culture unfamiliar to you.
Discuss the prevalence of each of the health problems : Discuss the prevalence of each of these health problems in society today. Describe measures that you would take as a nurse to assist clients with health.
Is the weight hysteria in our culture valid : Is the weight hysteria in our culture valid, or is it created by groups with special interests, such as the pharmaceutical industry, researchers with vested.
Develop an elementary computer program : ITC544 IT Fundamentals - Charles Sturt University - What are the interrupts in a computer system Describe the approaches to deal with multiple interrupts
Two regular languages : Given two languages, L and M, define the exclusive-or of L and M as the set of all strings, w, such that w is in L and not in M or w is in M and not in L.
How power relates to health care organizational structure : Evaluate how power relates to health care organizational structure, behavior, and leadership. Recommend evidence-based changes to the organizational structure.
Pairs of numbers are relatively prime : Which of the following pairs of numbers are relatively prime? Show the calculations that led to your conclusions.
What is purpose of international Climate Conference meetings : ENST6005 Global Sustainability Studies Assignment, Curtin University Australia. Discuss what is the purpose of these international Climate Conference meetings

Reviews

len2291935

4/24/2019 12:16:11 AM

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 201930.doc Please also adhere to the following formatting rules: 1. For Q2(a) you need to submit a *.mas file. 2. Please compose the answers of rest of the questions 3 in a document file (doc or docx format). Please do not submit in pdf formats. Please upload the document in the Turnitin within deadline. 3. You may put the mas file and document file in a folder, compress the folder and upload the compressed file to the Turnitin. You may also upload the two files separately. 4. 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) 5. Each page should have page numbers in “page x of y” format (including the cover page). 6. You DO NOT need to provide any references for any of the questions.

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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