Display the program title and programmers name

Assignment Help Computer Engineering
Reference no: EM132201301

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. introduction
b. userInstructions
c. getUserData
d. displayFibs
e. farewell

5) 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 Numbers
Programmed by Leonardo Pisano
What's your name? Paul
Hello, Paul
Enter the number of Fibonacci terms to be displayed
Give the number as an integer in the range [1 .. 46].
How many Fibonacci terms do you want? 50
Out of range. Enter a number in [1 .. 46]
How many Fibonacci terms do you want? 14
1 1 2 3 5
8 13 21 34 55
89 144 233 377
Results certified by Leonardo Pisano.
Goodbye, Paul.

Reference no: EM132201301

Questions Cloud

Write a logical expression for a web search engine : Write a logical expression for a Web search engine to find sites pertaining to coastal wetlands in Lounisiana but not in Alabama.
Calculate and plot the error of the forward difference : Write a MATLAB function which calculates and plots the error of both the forward and central difference approximations of the first derivative of a polynomial.
Create a gaussian lowpass filter and apply : Create a Gaussian highpass filter and apply it to the Fourier coefficients of img1. Create a Gaussian lowpass filter and apply .
Write a matlab code that defines two symbolic matrices : Write a Matlab code that Defines two symbolic 4 times 5 matrices A and B.
Display the program title and programmers name : Display the program title and programmer's name. Then get the user's name, and greet the user.
How to get the large constant in a register : Write the LEGv8 assembly for the following code snippet. One trick is to figure out how to get the large constant in a register when the ADDI instruction only.
A program which will ask the user to enter 5 digit numbers : Write a JavaScript program which will ask the user to enter 5 digit numbers. Your program will output if this number is palindrome or not.
Write a javascript program which will output a form : Write a JavaScript program which will output a form as the following. When the use click on button Total the sum of these five values will show up.
Write a sequence of functions to test all functions : Write a JavaScript program that manipulates circular linked list. Implement all supporting functions (methods): search, insert (add) and delete.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How would an ssa bus configuration recover

How would an SSA bus configuration recover from a single disk failure? Suppose another node fails before the first one can be fixed. How would the system recover?

  What are the head-bytes in the 456 protocol

A platform works at a given time as one of the two modes: transmitter or a receiver (but not both);

  Create a text based version of the dice game button men

Create a text based version of the dice game 'Button Men'. No Special dice are allowed. Each Player starts with a set of 5 dice.

  Evaluate the performance of a computer

When should I use Arithmetic Mean, Geometric Mean, and Harmonic Mean to evaluate the performance of a computer?

  Describing the features functions advantages and situations

Describing the features, functions, advantages, disadvantages, and situations in which one would use Microsoft Visio, Access, OneNote , SharePoint, and Project.

  Calculate the average score for each student in the class

Your program will ask the user to enter the number of students in the class and the each student has 3 exams taken.

  Write a program that the string is a palindrome

Design and implement a program that prompts the user to enter a string and then performs two palindrome tests.

  Sector specific challenges in crafting security policy

Compare and contrast at least two U.S. Critical Infrastructure sector specific challenges in crafting security policy

  Analyze the history of broadband and the emergence services

Analyze the history of broadband and the emergence of integrated services digital network (ISDN), Digital Subscriber Line (DSL), and digital mobile video broadcasts.

  Implement and test a prototype for rsa

Implement and test a prototype for RSA, an asymmetric encryption system.

  Question1 write code for following-a compare s2 to s1b

question1. write code for following-a. compare s2 to s1b. select the fifth in s2c. converts s1 to a new string

  What infrastructural or cyber domain sector are protected

According to your answer above, what infrastructural or cyber domain sector or assets are being protected by such enforcement?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd