The fibonacci sequence

Assignment Help C/C++ Programming
Reference no: EM13162361

C PROGRAMMING 
   In the novel "The DaVinci Code", a scrambled version
    13, 3, 2, 21,1, 1, 8, 5 
   of the first eightFibonacci numbers appear as one 
    of the clues left by murdered  museum curator 
    Jacques Sauniere.
   In this assignment, we will do something related to
    the Fibonacci sequence.
   The Fibonacci sequence is a series of whole numbers 
   starting at 1, followed by the sum of the two   
     preceding numbers.
     The first eight ones are 1, 1, 2, 3, 5, 8, 13 and 21.
      Write *one* C program that will accomplish *all*
      the following steps:
1) Display the complete Fibonacci sequence until 
     you reach a value
    less or equal than 1,000,000 (one million). 
2) Display the count of how many numbers are in that
      sequence between 1 and 1,000,000.
3) Display (or emphasize in the display of step #1) 
      all the numbers (if any)
    that are part of the Fibonacci sequence 
        below 1,000,000and whose 
     square root is a whole number. 
    For example 16 has a whole square root (4),
    but 16 is not part of the Fibonacci sequence. 
 4) Display (count) how many numbers satisfy the
     two conditions indicated in step #3 (part of Fibonacci
   below 1,000,000  and whole square root).
5) Starting with the second number of the sequence, 
    display the divisionof the numberbythe previous 
     one for the complete sequence 
     Can you see a pattern developing? 
    We call this the Golden Number.
    Important Notes:
     i) Proper indentation and documentation (comments)
    are very important.

Reference no: EM13162361

Questions Cloud

Vision statement-alignment-paradigms and grading criteria : The vision of the team is to reduce and eventally get the damages of goods receive and shipped down to zero with the dock workers that load and unload the trucks.  Does your team have a vision statement? What is it?
Roman trade sites : Findings at Roman trade sites dating to about 0 C.E. suggests that of the following groups,  this group was least involved in ocean trade between the Roman Empire and India:
Brilliant color is small supplier of chemicals : Brilliant Color is a small supplier of chemicals and equipment that are used by some photographic  stores to process 35mm film. One product that Brilliant Color supplies is BC-6. John Kubick, president of Brilliant Color, normally stocks 11, 12, or ..
Communication technology on print and electronic based media : Preparation: To competently address this essay you will need to have an understanding of the recent past, our current period and the media’s future in Australia. Communication Studies graduates are expected to have a high standard of written commun..
The fibonacci sequence : In the novel "The DaVinci Code", a scrambled version 13, 3, 2, 21, 1, 1, 8, 5 of the first eight Fibonacci numbers appear as one of the clues left by murdered museum curator Jacques Sauniere. In this assignment, we will do something related to t..
Fuels hate crimes : Write a 275 word paragraph about hate crimes perpetrated againist and how lack of knowledge fuels hate crimes.
Colonials used both peaceful and violent methods : The colonials used both peaceful and violent methods to oppose the British policies imposed on America from 1763-75. Identify and elaborate on two such methods – one peaceful and one violent. Which of the two identified do you think was more effectiv..
Determine the effective miss rate : For the following repeating sequence of 1w address (given in hex) and cache configurations... Assuming least recently used (LRU) replacement for associative caches,
Conversation with socrates : Imagine you are having a conversation with a Socrates. You will debate the question of free will versus determinism.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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