Test Cases for Tutorial Problems


      Tutorial 7

      Question 1

      Input:

      prog -o -s -c 3 
      

      Output

      3 is an  odd number
      3 squared is 9
      3 cubed is 27

      Example Input

      prog -s  3 
      

      Output

      3 squared is 9
      
      Example Input
      prog  3 
      

      Output

      3

      Example Input

      
      prog -?
      

      Output

      
      prog [-o] [-s] [-c] [-?] number 
      [-o] write if the number is even or odd
      [-s] write out the number squared
      [-c] write out the number cubed
      [-?] print help info


      Back to Main Page for Lecture 7