Display the complete fibonacci sequence

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

Question: 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.

Prepare *one* C program that will accomplish *all* the subsequent steps:

Part 1: Display the complete Fibonacci sequence until you reach a value less or equal than 1,000,000 (one million).

Part 2: Display the count of how many numbers are in that sequence between 1 and 1,000,000.

Part 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,000 and whose square root is a whole number.

For case 16 has a whole square root (4), but 16 is not part of the Fibonacci sequence.

Part 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).

Part 5: Starting with the second number of the sequence, display the division of the number by the previous one for the complete sequence.

Can you see a pattern developing? We call this the Golden Number.

Please keep it simple and short and no copy and paste or at least help me get started - You have to satisfy the requirements specific in the instruction.

Reference no: EM13708714

Questions Cloud

Why use asymptotic notation instead of running time : Why use asymptotic notation instead of running time or operation counts and when does it make more or less sense?
What components of atmosphere might cause distilled water : It was mentioned that you should not expect the pH of distilled water to be 7.00 as ordinary measured in the laboratory. What components of the atmosphere might cause distilled water in the laboratory to have a pH
Design an algorithm that asks for the user for the number : Design an algorithm that asks for the user for the number of fixed-price items to order, adds sales tax and flat-rate shipping, and displays the result.
What is the pressure when the volume of the gas : At 46c a sample of ammonia gas exerts an pressure of 5.3 atm. What is the pressure when the volume of the gas is reduced to one fourth of the original value at the same experiment
Display the complete fibonacci sequence : Display the complete Fibonacci sequence until you reach a value less or equal than 1,000,000 (one million) - display the division of the number by the previous one for the complete sequence.
What is the molecular weight of a nonelectrolyte : Question- What is the molecular weight of a nonelectrolyte if 5.0 g dissolved in 100.0 g of water has a freezing point of -0.25°C?
Calculate qrxn for 1 g of sodium metal and delta hrxn : Calculate qrxn for 1 g of sodium metal, and Delta Hrxn in (KJ ) for the reaction as written. Also, assume the density of water is 1.00g/mL throughout this temperature range and that the loss of H2O is minimal
Save the punch in or punch out date : Display an input field called "Choice" to input one of the four options - Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again.
What volume should dilute of an cucl2 solution : Question- To what volume should you dilute 123 mL of an 8.05 M CuCl2 solution so that 51.0 mL of the diluted solution contains 4.21g CuCl2?

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