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

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  Change temperature fahrenheit to celsius and kelvin

Write a program in c++ that takes the temperature in Fahrenheit and convert it to Celsius And Kelvin:

  Returns a count of the steps through the sort

Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.

  Create the appropriate constructor, getters and setters

Create the appropriate constructor, getters and setters for the class. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.

  Implement a simplified version of the set class

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

  Computer programming using c language lab

Computer programming using c language lab

  Write a c function void print_triangle(int n)

Write a C function void print_triangle(int n) that prints a triangular pattern of asterisks of height n and width 2 * n + 1 with one asterisk in the first line, three in the second line, etc.,

  In psuedocode, design an application

In psuedocode, design an application that has an array of at least 20 integers. It should call a module that uses the sequential search algorithm to locate one of the values

  Write a program using vectors and iterators

Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The d..

  Create a base employee class

Create a base Employee class and a derived StudentEmployee class

  An integer on this system is 4 bytes long

Assume the following for the program below. An integer on this system is 4 bytes long. The memory address where the array "a[]" was created begins at location 8000. a. #include

  Displays columns titled "name", "quantity", "price", value

Write a program that displays columns titled "Name", "Quantity", "Price", and "Value". The fourth column contains the result of multiplying each item's quantity by its price. In addition, the program should calculate and display the total value of th..

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