Lab Assignment Solution and Comments, Foundations of Computing Lab Assignment Solution and Comments, Foundations of Computing Revised March 28, use your browsers Reload or Refresh button to get the latest version. Here are some interesting approaches.
Many solutions read the entire file into one big string.
Then in the END section, just check that string for each pattern. With this method, it is not necessary to use variables to remember what was seen on each line. This section decribes some of the errors people made. That character might appear at the end of the last line in the file, so you have to check the entire file. Any solution that exits or prints Numeric or Text before reading the entire file must be wrong.