MASM Assembly

Write in MASM Assembly
Objectives:1) Getting string input
2) Designing and implementing a counted loop
3) Designing and implementing a post-test loop
4) Keeping track of a previous value
5) Implementing data validation
Problem Definition:Write a program to calculate Fibonacci numbers.• Display the program title and programmer’s name. Then get the user’s name, and greet the user.• Prompt the user to enter the number of Fibonacci terms to be displayed. Advise the user to enter an integer in the range [1 .. 46].• Get and validate the user input (n).• Calculate and display all of the Fibonacci numbers up to and including the nth term. The results should be displayed 5 terms per line with at least 5 spaces between terms.• Display a parting message that includes the user’s name, and terminate the program.
Requirements:1) The programmer’s name and the user’s name must appear in the output.2) The loop that implements data validation must be implemented as a post-test loop.3) The loop that calculates the Fibonacci terms must be implemented using the MASM loop instruction.4) The main procedure must be modularized into at least the following sections (procedures are not required this time):a. introductionb. userInstructionsc. getUserDatad. displayFibse. farewell5) Recursive solutions are not acceptable for this assignment. This one is about iteration.6) The upper limit should be defined and used as a constant.
Notes:1) It is not necessary to store the Fibonacci numbers in an array. The terms may be displayed as they are generated.2) The second-order Fibonacci sequence is defined as:a. The first two terms are both 1.b. All other terms are calculated as the sum of the two previous terms.c. The reason for restricting n to [1 .. 46] is that the 47th Fibonacci number is too big for DWORD data type.
Example:
Fibonacci NumbersProgrammed by Leonardo PisanoWhat’s your name? PaulHello, PaulEnter the number of Fibonacci terms to be displayedGive the number as an integer in the range [1 .. 46].How many Fibonacci terms do you want? 50Out of range. Enter a number in [1 .. 46]How many Fibonacci terms do you want? 141 1 2 3 58 13 21 34 5589 144 233 377Results certified by Leonardo Pisano.

[Button id=”1″]

Quality and affordable writing services. Our papers are written to meet your needs, in a personalized manner. You can order essays, annotated bibliography, discussion, research papers, reaction paper, article critique, coursework, projects, case study, term papers, movie review, research proposal, capstone project, speech/presentation, book report/review, and more.
Need Help? Click On The Order Now Button For Help

What Students Are Saying About Us

.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"

.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."

"Order a Custom Paper on Similar Assignment! No Plagiarism! Enjoy 20% Discount"