Next: Pitfalls
Up: C. Trapezium rule for
Previous: Extended trapezium rule
Contents
Think about the following when you plan your program.
- Break the problem down into smaller parts, and consider writing
these as different methods of your class.
- Which parts of your program do you want to be able to change
easily? Try to put these in separate methods.
- Which parameters would it be convenient to ask the user to
enter?
- How to program this formula?
- Summation is well suited to a particular type of Java
command, as you have seen in the matrix multiplication exercise
(exercise 4.3).
RHUL Dept. of Physics