Next: Top-down design using Functions Up: Streams and External Files Previous: Review Questions

Exercises

  1. In question 2 of Lesson 18 you wrote a program which input a series of numbers and output counts of the number of positive and negative numbers. Amend this program so that it takes data from a file (make up a sample file) and terminates on the end of file condition. Write the output from the program to another file.



Next: Top-down design using Functions Up: Streams and External Files Previous: Review Questions