EEGR-409, Assignment #8 due by class on Fri, Nov 13.

1.  Develop a program which opens a specified ASCII text file (.txt, .c or .cpp) and counts the number of occurances of a specified character and displays to the terminal.  Use command line args.

For example;

    11022009.exe  afile.txt  (

will open afile.txt and count the number of left parenthesis and display.

I suggest you get this program going without command line args then add the argc, argv stuff.


2.  Develop and test functions to implement a queue.  I have tried to explain by example.

     For example;

      +
      1132 YOGT

      +
      1150 MUSH

      p
      'should show 1132 and 1150 in line.

      +
      1234 MUSH

      $
      ' should show 0.00 in cash register

      -
      ' processes first person in line

      p
      ' should show 1150 and 1234 in line

      $
      ' should show $2.50.  This was the price of the YOGT.

      -
      ' processes 1150 with the MUSH

      $
      ' shows $7.00.  MUSH is $4.50.  All other foods are $3.00.

      x
      ' exits the program


****************************

typedef struct N
{
    int id;
    char food[5];
    struct N *next;
} NODE;