Question: Will you write out the printPascalrow and printPascal Triangle piece of this code in IA - 3 2 assembly language for my understanding. The purpose

Will you write out the printPascalrow and printPascal Triangle piece of this code in IA-32 assembly language for my understanding.
The purpose of this assignment is to reinforce concepts around procedures and data validation (CLO 3,4). Please be sure to thoroughly check the rubric - there are some specific requirements with point penalties if they are not satisfied.
Designing and implementing procedures
Designing and implementing loops
Calling procedures from procedures
Understanding data validation
What you must do
Program Description
Write a program to print a limited Pascal's Triangle. First, the user is instructed to enter the number of rows to be displayed, and is prompted to enter an integer in the range [1...13]. The user enters a number,x, and the program verifies that 1x13. Ifxis out of range, the user is re-prompted until they enter a value in the specified range. The program then calculates and displays the firstxrows of Pascal's Triangle.
Program Requirements
The programmers name and program title must appear in the output.
Themainprocedure must consist of only procedure calls (with any necessary framing). It should be a readable "list" of what the program will do.
Each procedure will implement a section of the program logic, i.e., each procedure will specify how the logic of its section is implemented. The program must be modularized intoat leastthe following procedures and sub-procedures:
introduction- Introduce Program and Programmer getUserInput- Prompt for and receive user-input number of triangle lines to print. Validate user input is in specified bounds and re-prompts as necessary. printPascalTriangle- Receives number of rows of Pascal's Triangle to print. Prints this number of rows of Pascal's Triangle. UsesprintPascalRowto print each line.
nChooseK- Receives two values, n and k. Outputs the result of "n Choose k" computation. SeeBinomial Coefficient Wikipedia ArticleLinks to an external site.for more details. printPascalRow- Receives index of row to be printed. Prints all elements of Pascal's Triangle for this row. UsesnChooseKprocedure to obtain each element to be printed.
farewellThanks user for using the program.
The upper and lower bounds of user input must be defined asconstants.
TheUSESdirective is not allowed on this project.
If the user enters a number outside the range [1...13] an error message must be displayed and the user must be prompted to re-enter the number of lines of the Triangle to be shown.
Notes
This visualization of Pascal's Triangle's should help you figure out how to use "n Choose k" to generate the necessary terms of Pascal's triangle.
Notes
This visualization of Pascal's Triangle's should help you figure out how to use "n Choose k" to generate the necessary terms of Pascal's triangle.
The only element of the top row of the Triangle is "0 Choose 0".
The two elements of the next row are "1 Choose 0" and "1 Choose 1".
The three elements of the next row are "2 Choose 0","2 Choose 1", and "2 Choose 2" and so on.
There are many algorithms you could use for yournChooseKprocedure. My recommendation is to useMultiplicative FormulaLinks to an external site.and tocheck first whether k=0 or k=n, because the result of nCk is always 1 for these cases and they might break your algorithm if not considered separately.Feel free to discuss algorithms and improvements on the Ed Discussion board and Teams.
Hint: By this algorithm, the formula for "10 choose 4" or(104)would be109874321or (10*9*8*7)/(4*3*2*1). Note both the numerator and denominator have 4 terms.
For this program, you may use global variables instead of passing parameters in memory or on the stack. This is a one-time relaxation of the standards so that you can get accustomed to using procedures.
Check theCourse SyllabusDownload Course Syllabusfor late submission guidelines.
Find the assembly language instruction syntax and help in theCS271 Instructions ReferenceDownload CS271 Instructions Reference.
To create, assemble, run,and modify your program, follow the instructions on the courseSyllabus Pages "Tools" tab.
Outcome
Pascal's Triangulator - Programmed by Lascap!
This program will print up to 13 rows of Pascal's Triangle, per your specification!
Enter total number of rows to print [1...13]: 13
1
11
121
1331
14641
15101051
1615201561
172135352171
18285670562881
193684126126843691
1104512021025221012045101
1115516533046246233016555111
1126622049579292479249522066121
Current code attached and errors shown, please help fix
Will you write out the printPascalrow and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!