CISC 105 Example Solution

I wrote a solution to the example problem. I wrote the program in steps so you can see how I think about problems. I would suggest that you think about problems and write programs in a similar way. Note that each program (even incomplete solutions) compiles and run.

Make sure that you understand your own solution before you look at the final solution. You can use any of the incomplete solutions as the basis for your own solution. Look at the comments at the top to see what step I've added to aech new program.

Keep in mind that this is not the only solution. The way you organize and write your program may be different but just as correct and readable. Talk to me if you have any questions about your solution.

Example Solution Code:

Last modified: Mon Oct 11 13:11:44 EDT 2004