FINAL PROJECT There are three assembly codes attached as screenshots (both inputs and outputs); which are in separate files. However the questions are on the second page of this doc. What I want you...

1 answer below »
The question is attached as a word doc


FINAL PROJECT There are three assembly codes attached as screenshots (both inputs and outputs); which are in separate files. However the questions are on the second page of this doc. What I want you to do for each of the programs is: 1. A program discussion/conclusion for each (a little over half a page for each). 2. The discussion should state issues that I possibly could have had writing the code(s), what my approach in writing the code(s) was (most important!!!), and how I overcame the issues writing the program. ***For the first one, you can say that I didn’t have any issues because it was slightly similar to our previous homework assignment. ***For example, an issue I had was that my program didn’t work because I forgot to include ……. in my code. ---> similar to this ***The approach part of the discussion is the most important. It should explain the process in getting the solution/output for the program. ***For example, for the second one, you can state why I used the scanf function to read the 6 numbers in an array. ---> elaborate on this 3. Lastly, a conclusion that states what I have learned from the program (approximately 3-4 sentences). So, in total, each program discussion and conclusion should be about ¾ of a page long. It is fine if two of them are just a little over a half page or even a half page, but at least one program should have discussion/conclusion close to a ¾ of a page long. Question One: Write an assembly language program that allows a user to enter any 5 numbers then display the sum of the entered 5 numbers. For example: Enter: 1, 2, 3, 4, 5 Output First Line: Display: Sum of the Entered is: 15 Output Second Line: Display: Division of entered digit number 4 by entered digit number two 2 so (4/( 2 = 2) Question Two: Write an assembly language program that allows a user to enter any 6 numbers in any order then display the largest and smallest entered number and the order from small to large and then large to small For example Enter: 4, , 2, 7, 9, 6, 1 Display: Largest entered number is: 9 Smallest entered number is: 1 Large to Small: 9, 7, 6, 4, 2, 1 Small to Large: 1, 2, 4, 6, 7, 9 Question Three: Write an assembly language program to count number of vowels in any given string.
Answered Same DayMay 05, 2021

Answer To: FINAL PROJECT There are three assembly codes attached as screenshots (both inputs and outputs);...

Neha answered on May 09 2021
148 Votes
First Program: Write an assembly language program that allows a user to enter any 5 numbers then display the sum of the entered 5 numbers.
In this program, it require
s 5 numbers from the user and then its sum is calculated. In the beginning of the code an array variable is declared of type dword which has 32 bits. It stands for double word. A prompt is saved with the line asking user to enter 5 numbers. Another line is saved as op_1 to display the sum of numbers and after that op_2 is declared to print the division of entered digit number 4 by entered digit number at two. As the main of the program starts, prompt is called which prints the line to user to enter five numbers. All the numbers are saved in array with specific address. 5th element is saved at 16 address in the array. Similarly, 4th element is saved at 12, 3rd element is saved at 8, 2nd element is saved at 4 and the 1st element is saved at the beginning of the array at 0 address.
A variable is declared in which every element is added, and final result is displayed as the sum of all elements. Element at 12 address was divided by the 2 and result is printed on the screen with opt_2. It was not difficult to code this program as it is somehow related with the last homework assignment. The only difficulty which I faced in this code was at the time of displaying the output. I forgot to call getch() function at the last of code.
While writing this program I learned about defining the address for array elements and their sequence. The elements of array are stored from the last. As seen in the code we stored the last element in the array and then moved to the first. If we change the...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here