Display the program title and programmers name

Assignment Help Computer Engineering
Reference no: EM132164337

Using Assembly Language write the following program.

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.

7) The usual requirements regarding documentation, readability, user-friendliness, etc., apply.

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.

Reference no: EM132164337

Questions Cloud

How many such zombie systems would the attacker : How many such zombie systems would the attacker need to flood a target server connected in:
Displays the longest common subsequence found : Your program should create the two dimensional array for the LCS table after getting the strings from the user.
Risks weak physical security presents : Why is it important to understand the risks weak physical security presents? How about Logical security?
Describe the psychological effects of violence : Describe the psychological effects of violence that the children from Nigeria might be experiencing? Be sure to consider issues such as gender and age.
Display the program title and programmers name : 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].
Compare selecting a range using the keyboard : Compare selecting a range using the keyboard, using the mouse pointer, or using the shift+click and ctrl+click keyboard/mouse combination.
Describe the major functions of judges : Select a current event that was recently been in the news and describe the major functions of judges, prosecutors, defense attorneys, and others.
What is the speedup from improving both : Either make multiply instructions run four times faster than before, or make memory access instructions run three times faster than before.
Summarizes the central theme and scope of the book : Write a concise annotation (150 words) for each reference that summarizes the central theme and scope of the book, article, or document. This must include.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a list of five automobile names

Creates a list of 5 automobile names that you make up and then retrieves those 5 names and displays all of them.

  Determine which algorithm runs faster

Determine which algorithm runs faster. Show your work; you will need to compute a maximum common point after which one algorithm is better.

  Questionwrite down an account class which represents a

questionwrite down an account class which represents a saint anselm college bank account with basic service such as

  Write a high-level program for this computation using a fork

Consider the following computation: ci = ai*bi + ci*di where, i = 1 to N. Write a high-level program for this computation using a fork/join.

  Explain change management procedure by data flow diagram

Using the data flow diagram explain the change management procedure, which might be used in the large organization concerned with developing software for external clients.

  Create a program that will allow people to choose fast pass

You are a programmer at Disney World. You need to create a program that will allow people to choose fast passes for 3 different attractions.

  Analyze the characteristics of elastic traffic

Analyze the characteristics of elastic traffic to determine why this is used on the Internet. Provide three examples of inelastic traffic not discussed.

  Research results that multiple organization have experienced

Read the case study titled, "Why Does Cryptographic Software Fail? A Case Study and Open Problems," original article. Use the Internet to research.

  Write a short java program that takes two arrays a and b

Write a short Java program that takes two arrays a and b of length n storing in t values, and returns the dot product of a and b.

  Discuss proper perception of information security

Why is it important to build one's awareness and proper perception of information security

  Suppose that all items are priced per-pound

Let us say you are a farmer and you participate in Farmers Market every Sunday. You bring 5 favorite vegetables or fruits for sale. You are going to use a program for checking out customers. You could choose your favorite 5 vegetables/fruits as yo..

  Print a message each time operation occurs during simulation

Design and implement an application that simulates the customers waiting in line at a bank. Use a queue data structure to represent the line.

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