Determine how many fibonacci numbers must be generated

Assignment Help Computer Engineering
Reference no: EM132105079

PROBLEM TO SOLVE: Given a specified "distance" from the golden ratio, determine how many Fibonacci numbers must be generated in order to get this close.

Note that there are no units involved; the "distance" isthe absolute value of the difference between two numbers of data type Double. To do this you will need to implement a loop.

First complete Lab8. After completing Lab8, make a Project3 folder in your CS account; copy the completed Lab8 program into your Project3 folder. Recall that the project was named GoldenRatio.

The source code file was named GoldenRatio.vb. Now make the changes needed to convert the Lab8 program to the program to solve the Project3 problem. Here are a few hints to help you get started:

1. Change the Text property of the form's labels to match what is seen in the sample output at the end of this document.

2. For this project you need to declare only one constant: 3 Const GOLDEN_RATIO As Double = 1.6180339887

3. The difference between the current ratio of the last two fibs and the golden ratio must be unsigned. To do this use the absolute value function as follows: diff = Math.Abs(GOLDEN_RATIO - ratio)

4. After exiting the loop, display the fib numbers generated in the Text property of the resultTxt TextBox.

5. To determine how many Fibonacci numbers were generated you can set up a loop counter; we called this numFibs in the Lab8 program.

Reference no: EM132105079

Questions Cloud

Involved in a trade fair exhibition : Why should the management of an establishment consider venturing on a trade mission or get involved in a trade fair exhibition?
Variable manufacturing costs per unit : Variable manufacturing costs per unit $103 Total fixed manufacturing costs ?$525,000 Variable marketing and administrative costs per unit $33
How to calculate variable expense for labor : How to calculate variable expense for labor assuming 600 units to be produced and sold, a per unit selling price of $85
What are the tangible and intangible benefits : What are the tangible and intangible benefits of self service reservations and employee portal?
Determine how many fibonacci numbers must be generated : Given a specified "distance" from the golden ratio, determine how many Fibonacci numbers must be generated in order to get this close.
What are the concerns around revenue inequality : What are the concerns around revenue inequality and revenue mobility?
Estimated median household income in america : What is the established or estimated median household income in America?
How many units were transferred out : If 7,700 units were in beginning inventory, 35,000 units were started, and 9,000 units were in the ending inventory, how many units were transferred out?
Write some java code for simple operations on binary search : Write some Java code for simple operations on binary search trees where keys are integers.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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