Global Marketing Partners FLOWCHARTS AND MORE for PC Logo

Related Topics:

Anonymous Posted on Feb 14, 2010

Write algorithm that displays the first N numbers in Fibonacci

Please help me to get the flowchart of the fibonacci sequence

  • Anonymous Feb 14, 2010

    Thank you for helping me but i didn't really understand what they have done like what is the input, output and the formula??

×

3 Answers

a_n_r_w99

Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

  • Contributor 1 Answer
  • Posted on Nov 20, 2012
a_n_r_w99
Contributor
Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Joined: Nov 20, 2012
Answers
1
Questions
0
Helped
1866
Points
1


Write an algorithm and draw a flowchart to generate the first N Fibonacci numbers (where N > 0).

Anonymous

Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

  • Contributor 3 Answers
  • Posted on May 25, 2010
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

Joined: May 25, 2010
Answers
3
Questions
0
Helped
2120
Points
7

Draw a flowchart to print the product of the first 10 even numbers

Ad

Anonymous

Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Master 425 Answers
  • Posted on Feb 14, 2010
Anonymous
Master
Level 3:

An expert who has achieved level 3 by getting 1000 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Dec 26, 2009
Answers
425
Questions
0
Helped
187176
Points
1249

Try this site, I think it gives you the best answer:

http://www.scribd.com/doc/10396888/Flowchart-of-Fibonacci-Number-Display-and-Summation

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer
0helpful
2answers

I have always wondered how people find pi. not how to use pi but how it came to be what it is in the first place. what is the equation for pi?

Hello Anthony.
There are perhaps quite a few methods how to calculate Pi. Pi being the ration of the Circumference of a circle to its diameter. The best method involves using the Fibonacci series of numbers as per the following link:

http://wiki.answers.com/Q/How_is_pi_calculated

Hope this helps :-)
Jeff
0helpful
1answer
1helpful
1answer

Wirte a pogram in java using for loop,that will print out the first 1 numbers of a fibonacii series that is:1 1 2 3 5 13 21 34 55

package com.gpt;

import javax.swing.JOptionPane;

/*
This program computes Fibonacci numbers using a recursive
method.
*/
public class Fibonacci
{
public static void main(String[] args)
{
String input = JOptionPane.showInputDialog("Enter n: ");
int n = Integer.parseInt(input);

for (int i = 1; i {
int f = fib(i);
System.out.println("fib(" + i + ") = " + f);
}
System.exit(0);

}

/**
Computes a Fibonacci number.
@param n an integer
@return the nth Fibonacci number
*/
public static int fib(int n)
{
if (n return 1;
else
return fib(n - 1) + fib(n - 2);
}
}
3helpful
1answer

Question 1: Find out the reasons those have made the UNIX an amazingly successful operating system. What are the Features on existing UNIX based operating systems like Linux Red Hat, Fedora and Ubantu...

Question 4: Consider the following set of processes that arrive in the ready queue at the same time:

Process CPU time

P1 2

P2 1

P3 4

P4 3

P5 1

P6 2



Consider the following scheduling algorithms: FCFS, SJF and Round Robin (quantum = 1)

(i) What is turnaround time of each process for each of the above

scheduling algorithms?

(ii) What is the waiting time of each process for each of the above

algorithms?

0helpful
3answers

Fibonacci formula won't graph, but will show table

Fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
At first type Fibonacci equation in Y editor with condition x>=0 and then graphing it. See captured images with enlarged form of graph

7_31_2012_12_55_37_pm.jpg


7_31_2012_12_57_51_pm.jpg


7_31_2012_12_58_57_pm.jpg
0helpful
1answer

Input a number and then show the fibonacci sequence of the input number in a C++ program.

I'm assuming one of two things, either

A) You need help for a programming class?

or

B) You're just curious?

Either way

#include <iostream>
#include <algorithm>
using std::swap;
using std::cout;
using std::endl;
// Function f returns n'th Fibonacci number
// It uses Algorithm 2C: non-recursive loop
unsigned int f(unsigned int x) {
unsigned int x1=1;
for(unsigned int i=1,x2=1;i<=x;i++) {
x1+=x2;
swap(x1,x2);
}
return x1;
}
// Function f_print prints out n'th Fibonacci number
void f_print(int n) {
cout << n << "th Fibonacci number is " << f(n) << endl;
}
// main is the entry point in C++
int main() {
f_print(46);
}

0helpful
3answers

I need solve this type calulation is 0,1,1,2,3,5,8,13,21,34 etc. u send me the code of this type of calculation in c++ language

Ok! Here's a snippit from some code I wrote in beginning c++ classes. However, don't just cut and paste it. Know how it works since it's important in algorithm examination!

Just tested it, compiles and runs perfectly on GCC 4.0.1 on my mac, as well as my linux boxen. Windows may take some changes to output data.

/***********************************************
* Steven Parker
* Calculating Fib Sequence
* after two starting values, each number is the
* sum of the two preceding numbers
***********************************************/
#include <iostream>
using namespace std;

int main() {
int whentostop = 20; //How many values of sequence to calculate
int fib[whentostop]; //Hold fib numbers

for (int i=0; i < whentostop; i++) {
if (i == 0)
fib[0] = 0;
else if (i == 1)
fib[1] = 1;
else
fib[i] = fib[i-1] + fib[i-2];

cout << "Fibonacci[" << i << "]: " << fib[i] << endl;
}
return 0;
}
Not finding what you are looking for?

1,876 views

Ask a Question

Usually answered in minutes!

Top Global Marketing Partners Computers & Internet Experts

deton8 von Splosion

Level 3 Expert

3342 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

39386 Answers

Marty Warge

Level 3 Expert

561 Answers

Are you a Global Marketing Partners Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...