program 2 = pgm2a_COP4338_c

Professor: Michael Robinson 
e-mail   : michael.robinson@fiu.edu 
Web Page : www.cs.fiu.edu/~mrobi002/teaching 


Create ONE sh ( example RobinsonMpgm2.sh ) file that will execute the following:
 
Worth 10 points

1 - Worth 3 points
    Using multiple line comments and single line comments, leaving one line per question
    Implement division by 0, with error trapping, using if and while() commands,
    How: 
    - Using a while loop, 
    - ask the user to enter the first number
    - ask the user to enter the second number
    - To exit the user must enter the value 999 for the first or the second number.
    - if the second number is zero inform user of error, and ask for a correct second number. 
    - if the second number is NOT a zero, do the division. Display all numbers and the
      computation using labels. 
    - Append the two accepted numbers and the result of the division to a results.txt file

2 - Worth 3 points
    Using multiple line comments and single line comments
    Doing a for loop from 1 to 100, 
    - Find the results of calculating each number from 1 to 100 mod 5.
    - Append each number to the results.txt file 
    - After the for loop ends calculate and display the average of the results
    - Append the average of the numbers to the results.txt file

3 - Worth 3 points
    Using multiple line comments and single line comments
    - download the following file to current directory 
      http://users.cis.fiu.edu/~mrobi002/downloads/samples/b23.pro
    - Find out how many record are in this file and append total to the results.txt file  
    - Find out how many lines contain 'VV' and append total to the results.txt file    
    - Find out how many 'VV' are in the file and append total to the results.txt file          
      
      
4 - Worth 1 point
    - At the begging of the results file add
      PROGRAM 2 BEGINS
    - At the end of the results file add
      PROGRAM 2 ENDS