COS5018-B : Numerical Analysis Report Writing - Mathematics Assignment Help

Download Solution Order New Solution
Assignment Task:

Task:

Scenario:
You are required to write a little man computer (LMC) program using a set of 3-digit instructions as follows. Format Mnemonic Meaning
000 STOP Stops the Computer - the LMC rests
1xx ADD xx Adds the contents of mailbox xx to the calculator display
2xx SUB xx Subtracts the contents of mailbox xx from the calculator display

3xx STO xx Stores the calculator value into mailbox xx.
4xx STA xx Stores the address portion of the calculator value (last 2 digits) into the address portion of the instruction in mailbox xx
5xx LOAD xx Loads the contents of mailbox xx into the calculator
6xx BRA xx This instruction sets the instruction counter to the number xx, thus effectively branching to mailbox xx

7xx BRZ xx IF the calculator value is zero, THEN set the instruction counter to the number xx, thus effectively branching to mailbox xx

8xx BRP xx IF the calculator value is positive, THEN set the Instruction counter to the number xx, thus effectively branching to mailbox xx. NOTE: zero is considered positive.
901 INPUT Read a number from the IN basket and key it into the calculator.

902 OUTPUT Copy the number in the calculator onto a slip of paper and place it into the OUT basket.

Let the 8 digits of your UB student number be represented as d0d1d2d3d4d5d6d7.
Your program must be able to accept 3 distinct input values, and produce an output that is specifically defined by three digits of your UB number d3, d4, d6 as given in the following table.

No d3 d4 d6 Required output
1 Even Even Even Sum of the largest and twice the median
2 Even Even Odd Difference of twice the largest and the smallest
3 Even Odd Even Sum of the largest and twice the smallest
4 Even Odd Odd Difference of twice the median and the smallest
5 Odd Even Even Sum of the median and twice the smallest
6 Odd Even Odd Difference of twice the largest and the median
7 Odd Odd Even Sum of twice the median and the smallest
8 Odd Odd Odd Sum of twice the largest and the smallest

 

This COS5018-B  :Mathematics  Assignment has been solved by our Mathematics Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.