Project 2: due date is April 5th , 2017 before class time The objective of this project is to use ARM assembly to branch to functions and pass the argument to the functions using the stack and either receive the result on the stack or in a register. 1. Write your project in pseudocode. 2. Place the following integers into an input file. Use them as an inputs for running operations: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 3. Have 2 output files. The first one must have three columns: the first is the integer, the second is the summation (using the algorithm n/2 *(n+1)), and the third column is the factorial of the number. Prior to column headings there should be string(s) of character that lists your class name, number, and your name and last name. The second output file is described in part 4. 4. Use the following functions in this problem: • File open • File append • Number factorial • Number summation For each integer, save the results of factorial and summation in a memory array contiguously. For example, the array would read: A = …, (n-1)!, Σ𝑖𝑛−1𝑖=0, n!, Σ𝑖𝑛𝑖=0,… After processing all the integers, perform an insertion sort on the resultant array. You can find its explanation on the internet. The example below is from Wikipedia: for i = 1 to length (A) -1 x = A[i] j = i – 1 While j >= 0 and A[j] > x A[j + 1] = A[j] j = j – 1 end while A[j + 1] = x End for loop Note: A is the array of integer values calculated by your summation and factorial functions. Write the calculated integer values from the sorted array to the second output file. The integers must be sorted in an ascending order. Note: 1. Each subroutine/function must have comment block in the beginning which explains which variables are the inputs that are received from caller and where they are located, and what is (are) the function’s output(s), where it is located, and how its returned to the caller. 2. Utilize the stack for passing parameters.

Project 2: due date is April 5th , 2017 before class time The objective of this project is to use ARM assembly to branch to functions and pass the argument to the functions using the stack and either receive the result on the stack or in a register. 1. Write your project in pseudocode. 2. Place the following integers into an input file. Use them as an inputs for running operations: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10 3. Have 2 output files. The first one must have three columns: the first is the integer, the second is the summation (using the algorithm n/2 *(n+1)), and the third column is the factorial of the number. Prior to column headings there should be string(s) of character that lists your class name, number, and your name and last name. The second output file is described in part 4. 4. Use the following functions in this problem: • File open • File append • Number factorial • Number summation For each integer, save the results of factorial and summation in a memory array contiguously. For example, the array would read: A = …, (n-1)!, Σ𝑖𝑛−1𝑖=0, n!, Σ𝑖𝑛𝑖=0,… After processing all the integers, perform an insertion sort on the resultant array. You can find its explanation on the internet. The example below is from Wikipedia: for i = 1 to length (A) -1 x = A[i] j = i – 1 While j >= 0 and A[j] > x A[j + 1] = A[j] j = j – 1 end while A[j + 1] = x End for loop Note: A is the array of integer values calculated by your summation and factorial functions. Write the calculated integer values from the sorted array to the second output file. The integers must be sorted in an ascending order. Note: 1. Each subroutine/function must have comment block in the beginning which explains which variables are the inputs that are received from caller and where they are located, and what is (are) the function’s output(s), where it is located, and how its returned to the caller. 2. Utilize the stack for passing parameters.

This content is for CheckYourstudy.com Members members only.Kindly register or Login to see content or contact +1 909 666-5988. Log InRegister