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

  Describe the two types of support structures for prototyping

How does the slicing (layering) thickness affect the quality of rapid prototyping? Describe the two types of support structures for prototyping.

  How knowledge and skills obtained in the course

Physical Security subject. a 300 word description of how knowledge and skills obtained in this course were applied in your current position or an employment.

  Does requested calculation and displays appropriate result

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named voltage and is used to input a voltage value in volts.

  Write program that computes the cost of a long distance call

Write program that computes the cost of a long distance call

  Discussion on the technology and software

Students will select a recent innovation that has (or will play) played a valuable role in the way educators teach and/or students learn (e.g., hardware such as mobile phones, scientific calculators, whiteboards, OR software such as using alternat..

  Explain in twenty words or less how selection sort works

Explain in twenty words or less how selection sort works. On average, about how many more comparisons does selection sort do than insertion sort on a list?

  Describe a way in which string object might store characters

When using a String object, you do not know how it stores its characters. Describe a way in which a String object might store its characters.

  Which architecture would best suit to implement the system

Consider you are tasked with implementing a new payroll system that will allow employees to record time card information electronically.

  Write a program that supports the given operations

Write a program that supports the following operations: int add(string login, string time, int priority, int size, int handle).

  Multicast routing paradigm

The data-driven multicast routing paradigm works best on the local networks which have low delay and excess capacity, however the demand driven paradigm works best in the wide are environment which has limited capacity and higher delay.

  Write a program that can be used to convert meters to feet

Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method.

  Why computers and software used to better our society

why computers and software used to better our society.

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