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 c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Design customized mailing lists for marketing department

Marketing department requires to be able to design customized mailing lists, to send different messages to different types of donors. What system will best meet these requirements?

  C program that compare the time required

Write a C program that compare the time required to compute the product of two 10,000 x 10,000 matrices with and without optimization for locality.

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Maze program

Maze program. In this assignment you will represent a maze with a binary tree. . The starting point is node N and the ending point is node Z.

  Write c program that prompts for variable number of integers

Write a C program that prompts for a variable number of integers, adds them up, averages them, and prints out the average.

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

  Write a program that asks the user to enter the names of 3

Write a program that asks the user to enter the names of three salesmen. The program should thenaccept the sales produced for salesman for each quarter of the year. Display the name, and the totalsales amount, of each salesman.

  Program to compute surface area of sphere using function

Write down a program in C++ to compute surface area of sphere using a function. As sample run, write down the surface areas of spheres with radii.

  Create class having constructor to recieve two ints

Create a class (in C++)named Card. The class should have two int data members named face and suit.The class should have a constructor that recieves the two ints and uses them to initialize the data members.

  Write a program code to compute and build a table of reynold

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

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