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

  Column in a database table

This database object display data in a custom format. They are often easier to read than tables.

  Revolutions per minute

Shirley is on a Ferris wheel which spins at the rate of 3.8 revolutions per minute. The wheel has a radius of 45 feet, and the center of the wheel is 57 feet above the ground. After the wheel starts moving, Shirley takes 13 seconds to reach the to..

  Implement unsigned 8-bit multiplication and division algorit

Implement unsigned 8-bit multiplication and division algorithms in MIPS assembly language. You need to follow the multiply and divide algorithms as given in the textbook or the slides. You must NOT use any MIPS multiplication or division instru..

  Discuss about the online e-mail services

(Privacy) Some online e-mail services save all e-mail correspondence for some period of time. Suppose a disgruntled employee were to post all.

  Compute pressure if temperature and number of moles produces

A container with the ideal gas, temperature, and number of moles produces what pressure? What occurs if source voltage is restored to 12 V, but resistors change?

  Security polices of a mobile companies

What are the security polices of a mobile companies? write a 2-3 page report and ensure to address the following points. 1) Are the existing policies obsolete?

  Address size and the total memory size in bits

Part a) Using a Harvard design, find the code memory address size, the data memory address size and the total memory size in bits. Part b) Using a von Neumann design, find the memory address size and the total memory size in bits. Part c) What is t..

  Describe a general algorithm for adding two fractions

Using both pseudo code and a flowchart, describe a general algorithm for adding two fractions.

  How matrices are calculated

Show each of the intermediate matrices. Refer to section 9-1 of the textbook for the details of how matrices are calculated. Because no translations are involved, you can use 3 x 3 matrix math for your calculations.

  Make the color of the text lightblue

Write a CSS rule that gives h1 and h2 elements a padding of 0.5 ems, a dashed border style and a margin of 0.5 ems.

  Approach a professor regarding a disagreement

What is the best way to approach a professor regarding a disagreement about grades? I have contacted the professor and sent additional info to back up my position (actual research and not opinion) but she will not budge. This has led to a reducti..

  Write a java program that ask for a password

Need to write a java program that ask for a password, then asks again to confirm it. If the passwords don't match or the rules are not fulfilled, prompt again. Needs to include a method that checks whether a password is valid.

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