Im new at this and i need help with assignment
this year i joined computer science and am stuck on an assignment and i cant seem to finish it out of 3 question ive done 1 and 3 but number 2 im stuck on here is the q i would realy like some help my icq is 78828712 and email is email@example.com please help asap
2.. A Fibonacci sequence of numbers is computed by adding the first 2 numbers to get the third, the fourth is computed by adding the second and third and so on...
1 1 2 3 5 8 13 21 34 .... n
Write a C++ program which will prompt for the first 2 numbers of a sequence and then compute and print the first 20 numbers of Fibonacci sequence, 5 numbers to a line.
Note that these numbers get big fast so you will want to provide enough space for them to print properly. The output should look similar to;
1 1 2 3 5
8 13 21 34 55
89 144 ...
The output must be sent to the screen as well as to a disk file, but input prompts should not be output to file.
The program should continue to compute and print Fibonacci sequences until a 0 0 is entered. No negative numbers should be entered, and the numbers should be in ascending order, that is n1 <= n2 (you must test for these conditions and provide an error trap) The error message should be printed to both console window and output file.
Test your program with a variety of inputs. When you are satisfied that it works properly use the following pairs as data for your final run.
Hand in your source code, the text window, and the formatted output file.