Designing programs that emphasize iterative processes help students recognize patterns and then think about ways to describe the patterns using mathematical operators and variables.
This Fibonacci series program would not be a good one to start with. Probably a simple skip counting program would be better.
There are many different ways to code this, and it's fairly challenging so it will keep advanced programmers engaged. Again, start off my showing the program run, and then have the students do some pseudo-coding before they open their computers.
You don't necessarily need to use all of the "join" statements. They can get confusing. This is a simpler version that removes the extraneous join step.
No comments:
Post a Comment