Assignment 1
Date Assigned: October 31, 2007
Date Due: November 12, 2007
Fibonacci series or sequence is generated as follows:
num1 = 0
num2 = 1
and the new number is num1 + num2.
0 1 1 2 3 5 8 13 ........ is the Fibbonaci series.
Part 1
Write a Java program to print all Fibonacci numbers up to 200.
Part 2
Write a Java program to output the first 100 non-Fibonacci numbers.
The output must be printed in a tabular format, with up to 10 numbers
separated by spaces in a row.
Sample code that illustrates how output can be consolidated as a single string and
may be displayed on the console, or in a JFrame within the JLabel. Java swing components
are HTML enabled. This sample code illustrates the HTML features
and other options for output.
Here is the code for an OO version of the Fibonacci numbers program.
Who was Fibonacci?