program # 3  pgm3d_5OS

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


This assignment is worth 6 points total, partial credit will be given, 

   **********************************************
   *   USE UBUNTU TERMINAL MODE COMMANDS ONLY   *
   *   USE ANY EDITOR TO CREATE THIS PROGRAM    * 
   **********************************************


 1 - Worth 0.50 points. 
     - Using Linux shell commands, create a shell file named:
       yourLastNameFirstNameInitialPgm3.sh
     - Using any editor, append the following documentation
       USING MULTI-LINE COMMENTS:

     ********************************************************************
       Author    : Your Name 
       Course    : OS section. Example OS1, OS2 OS3, OS4
       Professor : Michael Robinson 
       Program # : Number and  program Purpose/Description 
                   { A brief description of the program }
                
       Due Date  : MM/DD/YYYY 
                 
       Certification: 
       I hereby certify that this work is my own and none of it is the work of any other person. 
             
     *********************************************************************


 2) Worth 2 points. Using Linux Shell Scripting. 
    - Implement division by 0, with error trapping, using if and while commands,
       
    How:
    a) using ANY editor, append to your .sh file commands that will do the following:
    b) Append your name, current running date and time to a NEW file called results.txt
    c) Using two variables: FirstNumber and LastNumber, use a while loop.
    d) Ask the user to enter the first number.
    e) Ask the user to enter the second number.
    f) If the user enters the value 99 for the first or the second number, you 
       must exit this section immediately, 
    g) If the second number is ZERO inform the user that you CAN NOT divide by 
       ZERO, and ask for a correct second number.
    h) If the second number is NOT a zero, divide FirstNumber by LastNumber and
       display all numbers on this computation using labels, 
       and append this output to the results.txt file.
    
       example: 4 divided by 1 = 4


 3) - Worth 1 point. Linux Shell Scripting.
      a) MANUALLY download to YOUR computer the file, in the same folder where
         your program in the following question b is located:
         http://users.cis.fiu.edu/~mrobi002/downloads/HumanGenome/VenterGraig/VGuncompressed/hs_alt_HuRef_chr10.fa     

      Using editors, append to your *.sh file, all the commands needed so that 
      when you execute your sh file, this file will produce the following:

      b) Using the file in question a, find out and display the total amount of
         TTT substrings found in the first 2,000 lines in the file in question a


Upload this Linux program to Moodle and bring a printed and STAPLED copy of this
program on the due date.

=================================================================


     ******************************************************
     *   USE WINDOWS TERMINAL MODE COMMANDS ONLY          *
     *   USE ANY EDITOR TO CREATE THE FOLLOWING PROGRAM   * 
     ******************************************************


 4 - Worth 0.50 points. 
     - Using Windows terminal commands, create a Windows batch file named:
       yourLastNameFirstNameInitialPgm3.bat
     - Using the NOTEPAD editor, append the following data to your *.bat file 
       USING MULTI-LINE COMMENTS (labels, goto) or single line comments:

     ********************************************************************
       Author    : Your Name 
       Course    : OS section. Example OS1, OS2 OS3, OS4
       Professor : Michael Robinson 
       Program # : Number and  program Purpose/Description 
                   { A brief description of the program }
                
       Due Date  : MM/DD/YYYY 
                 
       Certification: 
       I hereby certify that this work is my own and none of it is the work of any other person. 
             
     *********************************************************************/


 5 - Worth 2.00 points. Using Windows batch Scripting. 
     topic: Implement division by 0, with error trapping, using if and sumilating 
            while loops
     - Using the NOTEPAD editor, append to the *.bat file, all the commands needed
       so that when you execute your bat file, it will produce the following:

     a) Append your name and class name and section.
     b) Using two variables: FirstNumber and LastNumber, 
     c) Ask the user to enter the first number.
     d) Ask the user to enter the second number.
     e) If the user enters the value 66 for the first or the second number, you 
        must exit the loop immediately, and terminate this section ONLY.
     f) If the second number is ZERO inform  the user that you CAN NOT divide by
        ZERO, and ask for a correct second number.
     g) If the second number is NOT a zero, do the division, display all numbers
        of this computation using labels,
         
        example: 4 divided by 1 = 4
        
        
        
Rename your *bat file to *ba
Upload your Windows *ba program to Moodle and bring a printed and STAPLED copy 
of this program on the due date.
        
=================================================================