How the software system of a computer operates

Assignment Help Other Subject
Reference no: EM133673037

Computer Systems Fundamentals

Assignment

LMC is a cartoonised assembly language thatmimics the instruction set of many real-world architectures, including x86, ARM and others. These are modelled on the von Neumanncomputer system architecture, as proposed by John von Neumann in 1945. In learning LMC, you willgain an understanding of how the software system of a computer operates at a fundamental level. See the lectures and tutorials for more information about the architecture and instructions of LMC.

In this assignment, there are three questions. Be sure to answer all questions. For each, a marking scheme is provided.

You are required to demonstrate your ability to interpret and solve a novel problem. You will design a solution to the problem by using natural language to explain your approach, and plan how you will test the implementation of this design.After designing your solution and test plan, you are required to implement the design using the LMC integrated development environment (IDE).

TASK A
Write a LMC program that converts anUnreal numberinto a decimal number. The Unrealnumber system is like the Roman number system; however, it has some exceptions and limitations. You must display the result as output before halting the program.

For example, the UnrealnumberCXI is 111, andXXXVI is 36.

 

Unrealdigit

Natural number

I

1

V

5

X

10

L

50

C

100

D

500

 

Your program only needs to support the Unrealdigits listed in the table above.

Your program will only be able to calculate a natural number up to and including 999.
If the user enters anUnrealnumeral which exceeds this, the output is to be 999.
Six (6) input values are provided by the user, the order of input is important:
The first input is the number of D's that the Unrealnumber contains.
The second input is the number of C's that the Unrealnumbercontains.
The last input is the number of I's that the Unrealnumbercontains.
For example, if the user provides the inputs 0, 0, 0, 1, 2, 2 then this will be the equivalent of XVVII

TASK B
Write a LMC program that can convert an n-bit binary number into a decimal number. Display the natural number as output before halting the program.
The first input determines the value for n. It is assumed this value will be equal to four, or greater.
For example, if the first input is eight (8) then eight subsequent inputs are requested.
If the subsequent inputs number were 1, 0, 0, 1, 0, 0, 0, 0then the output would be 9.
n input values are provided by the user, one for each bit:
The first of these is the least-significant bit.
The n'th input is the most-significant bit.

TASK C
Write a LMC program that calculates the sum of numbers provided by the user. Display the summation as output before halting the program.
If the user has provided less than or equal to ten input values, then only sum even numbers. Odd numbers are ignored.
If the user has provided more than ten values, then only sum any odd numbers subsequent to the tenth input. The existing summation of even numbers shall remain.
If the user enters zero, at any point, then the summation is displayed.
For example:
Input values: 3, 3, 4, 0 Result: 4
Input values: 2, 3, 7, 0 Result: 2
Input values: 1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,0 Result: 43

QUESTION 1
Describe your approach to solving the problem.
• Use natural language, structured like a conventional programming language to communicate your design.
• When necessary, use looping and conditional constructs.
• Name symbols sensibly to make their use clear.

Cormen (2009) wrote an excellent introduction to the conventions of pseudocode (see Part I, chapter 2, section 1.2). You can read this by searching for the text via QUT Library.

Cormen, Thomas H. Leiserson, Charles E. Rivest, Ronald L. Stein Clifford. (2009). Introduction to Algorithms (3rd Edition) - 2.1.2 Pseudocode Conventions. MIT Press.

QUESTION 2
Draft a test plan to be used as a verification method to ensure that your LMC program is correct.
• Tabularise test input value(s) and the expected output(s)
• Consider uncommon cases. For example, when the calculator reaches its maximum value, when negative values are calculated, or when an input is unexpectedly large.

Draft your test plan using the following template (two examples are provided):
Comma-separate the input and output values.
Delete the examples.
Input Value(s) Expected output value(s) Notes
2,4,6 10 All even numbers
1,3,5 9 All odd numbers

QUESTION 3
Implement an LMC program according to the algorithm you designed in Q1.
Use the test suite you designed in Q2 to verify the implementation of your algorithm is correct.
• Only symbolic addressing is to be used; numerical addressingwill be disabled.
• LMC program must request the correct number of input(s).
• LMC program must produce the correct number of output(s).
• LMC program must produce the correct output value(s) for all given test cases.
• Code must be tidy (spacing, indentation) and comments areto be used to describe the algorithm. Do not describe the function of each LMC instruction.
• Your LMC file should showthe full history of how your solution was implemented.
• Use LMC IDEv1.5.0.0 (or greater)
• Enter your student ID in the LMC IDE when completing this question
• Errors will not be fixed by the marker.

 

Reference no: EM133673037

Questions Cloud

What bacterial structure contains peptidoglycan : How does the capsule of Streptococcus contribute to the bacterium's ability to cause disease? What bacterial structure contains peptidoglycan?
Designing Organizations for the International Environment : Designing Organizations for the International Environment. Which of the structure and strategy is being by your selected organization.
Lmc integrated development environment : Draft a test plan to be used as a verification method to ensure that your LMC program is correct - Tabularise test input value(s) and the expected outputs
Two main deliverables involved with this project : There will be two main deliverables involved with this project. First is the statement of work, which includes the project information, business need,
How the software system of a computer operates : How the software system of a computer operates at a fundamental level. See the lectures and tutorials for more information about the architecture
Working on temporary basis : Joseph has been working on a temporary basis for ABC. He was filling in for a janitor who had to take leave because of a car accident.
Who wants to implement strategic asset mix : Idlberto is young investor who wants to implement a strategic asset mix that he does not plan to change until he approaches retirement.
How communication and collaborative strategies can applied : Explain how communication and collaborative strategies can applied to ensure respectful interactions and to prevent or address potential issues among the team.
Provisions of the work health and safety act 2011 : SAFE28001 Safety Regulation and Management, Central Queensland University - determine whether any provisions of the Work Health and Safety Act 2011

Reviews

Write a Review

Other Subject Questions & Answers

  Research high and low context communication

Many things are left unsaid in this style of communication and the context of the message is filled in by the person's understanding of the culture.

  Find the number of items that should be produced in each run

A company needs 250,000 items per year. Production costs are $650 to prepare for a production run and $5 for each item produced. Inventory costs are $0.90.

  Determine certain human behavioral characteristics

For this paper, you will have to evaluate your beliefs with respect to ONE of the following claims: Genes alone can determine certain human behavioral characteristics

  Fixed-variable and semi variable costs

Define and explain the 3 types of financial costs: Fixed, Variable and Semi Variable costs.

  Identify the name of the policy and outline its goal

Identify the name of the policy and outline its goal(s). Please note that policy can also be a law, regulation, or guideline

  Factorial design in the fischer study

What were the advantages of using a factorial design in the Fischer (1993) study? What kind of follow up study might you suggest to clarify or extend the findings discussed in this report?

  Construct and apply gantt charts cpm and pert techniques

Construct and apply Gantt charts, CPM, and PERT techniques to project management. Rank the value and utility of different types of models in project management.

  Discuss how you will use your current leadership skill

Write a reflection of 750-1,000 words in which you identify your strengths and weaknesses related to the four content areas below.

  What kinds of things would you want to know about a nominee

As part of the confirmation process, what kinds of things would you want to know about a nominee? What questions would you ask?

  Develop an action plan for each of latent and active failure

NUR 2030- Develop an action plan for each of the latent and active failures, including the job title of the responsible person and a date you would expect.

  Describe two self-presentational strategies

Identify and briefly describe two self-presentational strategies we can expect to see from the candidates in this year's presidential campaign.

  Research and identify a current medium to large size company

Research and identify a current medium to large size company and provide an analysis of how this company uses and/or implements business driven MIS

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