Write the following ANNA assembly language programs. 1. Highest number Write an ANNA assembly program (high.ac)...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the following ANNA assembly language programs. 1. Highest number Write an ANNA assembly program (high.ac) that will continuously prompt the user for numbers. When the user enters a negative number, print the highest positive number entered by the user and exit the program. Print a zero if they did not enter any positive numbers. Assumptions You may make the following assumptions: All input values will be 16-bit two's complement numbers (-32,768 to 32,767), Overflow will not occur. Note: Given the previous assumption, this is only possible in problem 3 if someone enters over 32,768 integers in the same range). Grading and Other Requirements Grading is primarily based on functionality using a series of tests with each test being a fixed number of points. There is no partial credit for a test. A test will receive full credit if it produces the correct output. A test will receive zero if the output is incorrect in any manner. Highest Number (10 tests, 2pointseach) Division (10 tests, 3pointseach) Style (across all two programs, see below) Total 20 points 30 points 10 points 60 points Style will be evaluated using these criteria: appropriate commenting (see section 5.1 in the ANNA Guide), consistent spacing and indenting, and appropriate use of labels/.halt/.fill(see section 5.2 in the ANNA Guide). Blank or vastly incomplete files will lose style points. Programs that fail to assemble will receive a zero. Submitting your Program Programs will be submitted electronically via Canvas. Please follow the steps carefully: 1. Ensure the assembly code files have the proper names: Program 1: high.ac 2. Submit the three assembly files in Canvas. Please submit all three files in a single submission. You may resubmit your assignment. If you do, please resubmit all three files (even if you changed only one). Only the last submission that was submitted before the deadline will be graded. Canvas will only accept .ac files. It will not accept .mc or zip files. Submit a video of you explaining your code, running of your tests inputs and outputs Late submissions are not accepted and result in a zero. 1 Write the following ANNA assembly language programs. 1. Highest number Write an ANNA assembly program (high.ac) that will continuously prompt the user for numbers. When the user enters a negative number, print the highest positive number entered by the user and exit the program. Print a zero if they did not enter any positive numbers. Assumptions You may make the following assumptions: All input values will be 16-bit two's complement numbers (-32,768 to 32,767), Overflow will not occur. Note: Given the previous assumption, this is only possible in problem 3 if someone enters over 32,768 integers in the same range). Grading and Other Requirements Grading is primarily based on functionality using a series of tests with each test being a fixed number of points. There is no partial credit for a test. A test will receive full credit if it produces the correct output. A test will receive zero if the output is incorrect in any manner. Highest Number (10 tests, 2pointseach) Division (10 tests, 3pointseach) Style (across all two programs, see below) Total 20 points 30 points 10 points 60 points Style will be evaluated using these criteria: appropriate commenting (see section 5.1 in the ANNA Guide), consistent spacing and indenting, and appropriate use of labels/.halt/.fill(see section 5.2 in the ANNA Guide). Blank or vastly incomplete files will lose style points. Programs that fail to assemble will receive a zero. Submitting your Program Programs will be submitted electronically via Canvas. Please follow the steps carefully: 1. Ensure the assembly code files have the proper names: Program 1: high.ac 2. Submit the three assembly files in Canvas. Please submit all three files in a single submission. You may resubmit your assignment. If you do, please resubmit all three files (even if you changed only one). Only the last submission that was submitted before the deadline will be graded. Canvas will only accept .ac files. It will not accept .mc or zip files. Submit a video of you explaining your code, running of your tests inputs and outputs Late submissions are not accepted and result in a zero. 1
Expert Answer:
Related Book For
Auditing and Assurance services an integrated approach
ISBN: 978-0132575959
14th Edition
Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley
Posted Date:
Students also viewed these algorithms questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
The largest government expenditure for Japan & the US is... a) military / defense b) transfer payments c) education / healthcare d) infrastructure
-
Abbott Laboratories licensed SmithKline Beecham Corp. to market an Abbott human immunodeciency virus (HIV) drug in conjunction with one of Smith Kline's drugs. Abbott then increased the price of its...
-
Lauprechta Inc. has the following employees on payroll: Complete the table for taxes to be withhold for each pay period. Withholding Semimonthly Pavroll S4,800 7,250 $2,800 S3,600 Marital Status...
-
Given the following information, use -Table B. 4 in Appenclix B to determine whether the correlations are significant and how you would interpret the results. a. The correlation between speed and...
-
Consulting income at Kate Walsh Associates for the period FebruaryJuly has been as follows: MONTH INCOME ($1,000S) February ......... 70.0 March .......... 68.5 April ............ 64.8 May...
-
Determine the highest real root of f(x) = -3x - 4x + 12 2 a) by graphing it in MATLAB (sketch your plot and give an approximate value) b) using 3 iterations (by hand) of Newton-Raphson. Make a table...
-
Consider the following state of a system with four processes, P1, P2, P3, and P4, and five types of resources, RS1, RS2, RS3, RS4, and RS5: Using the deadlock detection algorithm described in Section...
-
a) Indicate whether F 2 CCF 2 islinear, planar, or neither. b) Indicate which orbitals overlap to form the bondbetween the carbon atoms in H 2 CCH 2 a. between an unhybridized p orbital on C and an...
-
Indicate whether each of the following statements is true or false by writing T or F in t he a nswer c olumn. The owner of personal property cannot recover it from an innocent third party who...
-
Kiang, a sales representative working for Prats Appliances, sold a refrigerator to Pogany. After several weeks, Pogany changed her mind and wanted to repudiate the sales contract. Her argument was...
-
Patterson was on a group vacation tour when he discovered that his camcorder was not where he had left it on the tour bus. Later on the tour, Patterson noticed another vacationer, Carlsen, with a...
-
A claim against the property of another as security for a debt. a. bailee b. bailment c. bailor d. carriers lie n e. common c arrier f. consignee g. consignor h. constructive ba ilment i. lien j....
-
What a vague or ambiguous warranty usually means in similar transactions. a. disclaimer b. express w arranty c. full w arranty d. implied w arranty e. limited w arranty f. product lia bility g....
-
For 11.20 kg of a magnesium-lead alloy of composition 30 wt% Pb-70 wt% Mg. is it possible, at equilibrium, to have a and Mg,Pb phases having respective masses of 7.39 and 3.81 kg? If so, what will be...
-
You have accepted the engagement of auditing the financial statements of the C. Reis Company, a small manufacturing firm that has been your auditee for several years. Because you were busy writing...
-
Distinguish between a client letter of representation and a management letter and state the primary purpose of each. List some items that might be included in each letter.
-
Which of the following professional services is an attestation engagement? (1) A consulting service engagement to provide computer-processing advice to a client. (2) An engagement to report on...
-
What major considerations should the auditor take into account in determining how extensive the review of subsequent events should be?
-
Make a sketch showing the directions of the magnetic forces exerted on each other by (a) an electron moving in the same direction as the current through a wire, (b) a moving charged particle and a...
-
What is the direction of the magnetic field at a point vertically (a) above (b) below segment 1 in Figure 28.5? Figure 28.5 Mapping the magnetic field of a current loop. The magnetic field...
-
As the current loop in Figure 28.10 rotates over the first \(90^{\circ}\), do the magnitudes of (a) the magnetic force exerted on the horizontal sides and (b) the torque caused by these forces...
Study smarter with the SolutionInn App