1-) Please submit the solution of your final as Ms-word or PDF document
2-) Complete THREE QUESTIONS out of the four exam questions below.
3-) FOR EACH QUESTION, IT IS REQUIRED to include Ms-Word or Pdf file contains the following
A. Source file and sample of your output screen shots.
B. Up to one page of your program discussion. In the discussion, state the issues that you may have problem with if there is any. Why your program is not running (if it is not)? What was your approach (Your process to the solution)? How did you overcome the issues while writing the program?
C. Write your conclusion as what you have learned from this program.
Not including this report will result of losing 30% because I would not know if you really the one who did it or not.
YOUR REPORT WILL VERIFY THE UNDERSTANDING OF YOUR WORK, AND THAT YOU REALLY DID IT.
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.
Question Four: Write a procedure named Get_frequencies that constructs a character frequency table. Input to the procedure should be a pointer to a string, and a pointer to an array of 256 doublewords. Each array position is indexed by its corresponding ASCII code. When the procedure returns, each entry in the array contains a count of how many times that character occurred in the string. Include the source code only.
Answer One:
Answer Two:
| MEMORY ADDRESS | MNEMONICS | COMMENT |
|---|---|---|
| 2000 | LXI H 2050 | H←20, L←50 |
| 2003 | MOV C, M | C←M |
| 2004 | DCR C | C←C-01 |
| 2005 | INX H | HL←HL+0001 |
| 2006 | MOV A, M | A←M |
| 2007 | INX H | HL←HL+0001 |
| 2008 | CMP M | A-M |
| 2009 | JNC 200D | If Carry Flag=0, goto 200D |
| 200C | MOV A, M | A←M |
| 200D | DCR C | C←C-1 |
| 200E | JNZ 2007 | If Zero Flag=0, goto 2007 |
| 2011 | STA 3050 | A→3050 |
| 2014 | HLT |
Answer 3:
FINAL Project 1-) Please submit the solution of your final as Ms-word or PDF document 2-)...
Write a program in Python to solve the following task: In this project, you will build a phone number from digits entered by your user. Your program will loop until 10 valid digits have been entered. It will then use those digits to display the phone number entered using the format: XXXXXXXXXX (or (XXX) XXX – XXXX for extra credit). The program will ask for a digit, it will check to see if the digit is actually between 0 and...
In Small Basic Write a program that asks the user how many numbers s/he wishes to enter into an array and then enters a loop and proceeds to get those numbers from the user and enter them into the array. Once the array has been filled with the numbers, your program then asks the user to make a choice indicating what s/he wishes to do with the numbers in the array. The choices are: TextWindow.WriteLine("Enter 1 to compute and display...
Assembly Language////Write a program that read in 10 integers from the user. Save the numbers into an array; reverse the array and display the reversed array. .data arrayInt DWORD 10 DUP(?) Your program consists of 4 procedures: 1. main procedure: call procedures getInput, reverseArray, displayArray 2. getInput procedure: prompt user to enter 10 integer numbers, save the numbers into the memory for the arrayInt 3. reverseArray: reverse arrayInt 4. displayArray: display the reversed array
please solve it before 11:15 today
Subject :C++ programming
- Lab_9_Sec 51.pdf 1411113: Programming for Engineers Fall 2017/2018 LAB #9 Name: ID: Date Section Objectives: After completing this lab, you will be able to .Analyze a problem. .Implement the solution in C++ . Practice arrays and strings. Lab Exc. Mark Score Correct input/output Computational correctness Correct input/output Computational correctness Exercise#1: Number of occurrences in an array Write a program that fills an array with 10 random numbers between 0 and...
Exercises (No programming is required. Your submission should be a word or pdf document.) Question 1: (3 Marks) Convert from binary the number (11081181), to decimal and show all steps. Question 2: (3 Marks) Convert from decimal (350)e to binary and show all steps Question 3: (3 Marks) Convert from decimal (3567)s to hexadecimal and show all steps. Question 4: (3 Marks) Convert from hexadecimal (45AC)s to octal and show all steps Question 5: (2 Marks) Given the following snippet...
Programming language C Please go through this carefully. Needs function void add(int *a1, int n, int *a2) Write a program addition.c that reads in an array (a1) of numbers, and creates a new array (a2) of numbers such that the first and last numbers of a1 are added and stored as the first number, the second and second-to-last numbers are added and stored as the second number, and so on. You need to check for even and odd length of...
build a phone number from digits entered by your user. Your program will loop until 10 valid digits have been entered. It will then use those digits to display the phone number entered using the format: XXXXXXXXXX (or (XXX) XXX – XXXX for extra credit). The program will ask for a digit, it will check to see if the digit is actually between 0 and 9 inclusively. If so, the digit will be stored as the next number in the...
PLEASE HELP!!!I need help with the following JAVA PROGRAMS.
Please ready carefully. So this comes from tony
gaddis starting out with java book. I have included the screenshot
of the problems for reference. I need HELP implementing these two
problems TOGETHER. There should be TWO class files. One which has
TWO methods (one to implement problem 8, and one to implement
problem 9). The second class should consist of the MAIN program
with the MAIN method which calls those methods....
Here's an assignment that'll give you some practice with pointers. All you have to do is write a program that allows the user to populate an array of doubles (5 values) by calling the function InitArray. After the user has entered all the values, then call the function DispRevArray to display the array in reverse. Main will create and allocate space for an array of type double for 5 elements. Then you will create and allocate a pointer that will...
Write a complete program in assembly line that: 1. Prompt the user to enter 10 numbers. 2. save those numbers in a 32-bit integer array. 3. Print the array with the same order it was entered. 3. Calculate the sum of the numbers and display it. 4. Calculate the mean of the array and display it. 5. Rotate the members in the array forward one position for 9 times. so the last...