If you understand this algorithm fully before you begin, your design will be quick and painless. Design your program . The good news is that a good design makes it easy to write your program. The bad news is that it usually takes time and effort to come up with a good design. The bad news is that it's hard to learn how to design well.
Good design is essential to effective programming.
Once you have a good design, writing the code will be quick and painless. In general, a better design will result in less time spent coding and debugging. This program may seem complicated at first, but once you have decomposed the program into smaller pieces, you'll see that it is actually relatively small and simple. Note that I cannot read pine attachments with my mail reader, which is not pine . When you email your design to me, please do so as plaintext.