What’s the buzz:
DescriptionFibber, our first program, is a small one, but Yow! There’s a lot of new stuff to learn!Your mission is to implement an Intel assembly (IA-32) program that prints the n’th number in the Fibonacci sequence. In case you’ve forgotten your Fibonacci sequence (shame!), here’s a nice Wiki-page on it: http://en.wikipedia.org/wiki/Fibonacci_sequence Here’s some pseudo-code for an iterative solution to this problem:
Please bundle that algorithm up into a function. Use scanf()/printf() functions to read/write from/to the user. Something like this:
About that overflow check... once you get running (ha!), you’ll notice that large values entered by the user can break your Fibonacci program. If your Fibonacci answer is too large, an overflow will occur and the answer will appear to be a negative number (why is that?). Please check for this and tell the user that he has to input something smaller. GradingPlease put your completed code on the k: drive. This should include:
You must comment your code; uncommented code will face a harsh brand of grading justice.
Please use meaningful label names to make your program easier to understand. NotesWe will have extensive lecture time on this and peek at all the tasty examples on the web site. Check back here every so often if you like. thanks... yow, bill |
...
My site: william.krieger.faculty.noctrl.edu
My email: wtkrieger@noctrl.edu