How you will test the implementation of this design

Assignment Help Other Subject
Reference no: EM133507754

Computer Systems Fundamentals

TASK A

Write a LMC program that converts an Unreal number into a decimal number. The Unreal number 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 Unreal number CXI is 111, and XXXVI is 36.

Unreal digit

Natural number

I

1

V

5

X

10

L

50

C

100

D

500

Your program only needs to support the Unreal digits 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 an Unreal numeral 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 Unreal number contains.

The second input is the number of C's that the Unreal number contains. The last input is the number of I's that the Unreal number contains.
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, 0 then 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: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.

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 addressing will 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 are to be used to describe the algorithm. Do not describe the function of each LMC instruction.
• Your LMC file should show the full history of how your solution was implemented.
• Use LMC IDE v1.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.

Assessment 2 - Programming Assignment

Task description

LMC is a cartoonised assembly language that mimics the instruction set of many real-world architectures, including x86, ARM and others. These are modelled on the von Neumann computer system architecture, as proposed by John von Neumann in 1945. In learning LMC, you will gain 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 ‹ 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 I implement the design using the LMC integrated development environment (IDE).

Reference no: EM133507754

Questions Cloud

Do you see most forms of deviant behavior as manifestations : Where do you stand? Do you see most forms of deviant behavior as (i) manifestations of individual pathology or as (ii) normal responses to social conditions?
What happens when accountability is absent from a budget : What happens when accountability is absent from a budget? How are for-profit companies different from nonprofit or government agencies in how financial progress
Under what conditions can we say that we are free : Under what conditions can we say that we are free? Hume and Spinoza both argue that free will and determinism are compatible,
Researching a variety of electronic health record platforms : After researching a variety of electronic health record platforms, please compare and contrast the top three.
How you will test the implementation of this design : IFN551 COMPUTER SYSTEMS FUNDAMENTALS - how you will test the implementation of this design. After designing your solution and test plan, you are required
Federal government passes legislation banning superheroes : The federal government passes legislation banning superheroes who operate without a government license, and the government severely limits
Explain how his belief logically refuted itself : Everywhere and for anyone, to believe anything upon insufficient evidence. Explain how his belief logically refuted itself.
Evaluate the legal issues associated with assessment : What specific legal issues can arise in documenting assessment, testing, and diagnosis? Provide specific examples that support your evaluation.
How does cognition influence memory and emotions : What would a problem space be for. How does cognition influence memory and emotions?

Reviews

Write a Review

Other Subject Questions & Answers

  Indicators of nutrient deficiencies

Indicators of nutrient deficiencies.· Obesity rates or percentages: Compare to CDC statistics.· Affordability of food/available discounts or food programs and usage (e.g., WIC, food boxes, soup kitchens, meals-on-wheels, food sta..

  LEG 100 Business Law Assignment

LEG 100 Business Law Assignment Help and Solution - Strayer University, USA - Homework Help - Paula Plaintiff's Really Bad

  Explain the three primary goals of the evaluation

Explain the three primary goals of the evaluation. Analyze three major cultural or political issues that might be encountered and explain how they might be overcome effectively.

  Create a patient bill of rights for facility or service

Create a Patient Bill of Rights for your selected facility or service. Create a 10- to 15-minute, 9- to 12-slide voice-over presentation using either Microsoft.

  Identify any value-based assertions in the article

Identify any value-based assertions in the article and how the author supports these value-based conclusions with evidence.

  Prepare an A3 Digital Poster for the choosen organization

Describe how the efforts of public, private, not-for-profit agencies, or faith based groups and you as a professional can result in a more just global community

  Separation of powers-checks and balances

For much of 2011 and 2012, public dissatisfaction with Congress rose to all time highs, with 70-80% expressing disapproval with how Congress does its job. Many commentators note that Americans are fed up with Washington "grid-lock" that makes gove..

  How you use standard tools of expansionary monetary policy

Macropoland is currently experiencing a recession--consumption and investment are very sluggish, and unemployment is quite high at 9%. Currently, inflation.

  Research victims rights in several different states

Research victims' rights in several different states.Compare and contrast the victims rights in the different states.

  Write reports about sniffy

About classical conditioning and the other one was operant conditioning -  write reports about Sniffy.

  Conduct a literature search of appropriate databases

To prepare for this assignment, conduct a literature search of appropriate databases (e.g., PsycInfo, EBSCO) and select 10 peer-reviewed articles to use.

  Scrapped in favor of direct popular vote

Should the Electoral College be scrapped in favor of a direct popular vote, or re-engineered to make it more consistent with the popular vote?

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