This project depends upon Chapters 1-5, and provides experience with writing loops, and with file redirection.
Write a Spider program Checker_Board, which causes the spider to draw a checkboard pattern on the screen, like
X X X X X X X X X X X X X X X X
Use loops wherever appropriate.
Revise Project 3 so that a series of 30 speeds is processed as follows.
Instead of reading the speeds from the keyboard, create a file of 30 speeds -- call it, say, speeds.dat -- with an editor, one speed per line in the file, and use input redirection to read and process the 20 speeds. In addition to classifying each speed and displaying its classification, find the minimum, maximum, and average speeds, and the number of speeds in each class.
If your program is called speeds.exe, using input redirection you can process the speeds by
gexecute speeds.exe <speeds.dat
This program will be much easier to do correctly if you design the algorithm carefully before starting to code!
As usual, submit the Case Study document, a printout of the
listing file, and a test run executed with turnin.