SOURCE FILE: birdsSkeleton.cpp



#include<iostream>

using namespace std ;
 
void PrintInfo () ;
int GetHowManyCycles () ;
bool inputOK(int theInput) ;
void WriteErrorMessage(int height) ;
void MakeTop() ;
void DoOneCycle () ;
void MakeBase() ;

/* ************************************************************** */
/*                        FUNCTION: MAIN                          */
/* ************************************************************** */
int main()
{
  /* 
      The area of the program you are looking at right now
      is the main() function.

      Here in this main() function, put code that 
      1) declares variables,
      2) prints the information and directions, 
      3) gets the input from the user, 
      4) does the error checking, and 
      5) produces the output.

      It's OK to put function calls in main() to 'do' some of the
      5 things.  In fact, I am requiring you to make some 
      function calls in main().

      To help keep main() uncluttered, consider utilizing
      additional functions, besides the ones for which skeletons
      have been provided below.  For example, you could write a function
      to print the information and directions, and another function to
      get a value from the user.  You don't have to write such 'extra'
      functions for this assignment, but if you do, you'll probably
      learn more.

      To print the column of birds, put some loop code into main(),
      with a loop body that contains a CALL to the function DoOneCycle().
      In other words, main() needs to contain a loop that can make
      repeated calls to function DoOneCycle().

      Place a call to MakeTop in main(), above the loop code, 
      to write the top line of the printout of the program 
      (a row of exclamation points !).

      To make the base, place a CALL to MakeBase() in main(), below
      the loop code.

      DO NOT put cout statements in main() that make parts of the 
      image that the program writes to the screen.  Put such 
      cout statements only in the functions MakeTop(), DoOneCycle(), 
      and MakeBase().

      The job of main() is to CALL those functions in the right way.
  */
       /* Put the code for main() below this line. */
}

/* ************************************************************** */
/*                       FUNCTION: MakeTop                       */
/* ************************************************************** */
/* Inside the body of the MakeTop() function below, put code to
   print one copy of the top line of the program's display 
   - just one copy. In other words, put code there that will 
   print just the following one line:
!!!!!!!!!!!!!!!!!!!!!!!!
*/
void MakeTop()
{
       /* code for function MakeTop goes in here,
          under this comment, and between the braces. */


}

/* ************************************************************** */

/* ************************************************************** */
/*                     FUNCTION: DoOneCycle                      */
/* ************************************************************** */
/* Inside the body of the DoOneCycle() function below, put code 
   to print one copy of the following 9-lines:
@@@@@@@@@@@@@@@@@@@@@@@@
           .-.
       ,  /6 6\  ,
       }\ \ V / /{
      }  \/   \/  {
     }___/     \___{
         \     /
 jgs      `|-|`
          // \\

   IMPORTANT - put code in the function body below to make just ONE 
   copy of the 9-line image above, NOT multiple copies.

   Don't put any loop code in the function body below.  
   The code that makes looping happen goes elsewhere in 
   this program (in the main() function).
   
   When you write the code, you have to be careful, because some of the
   characters in the bird are backslashes.  Remember, you 
   need to 'escape' those characters. 
*/
void DoOneCycle () 
{
       /* code for function DoOneCycle goes in here,
          under this comment, and between the braces. */


}

/* ************************************************************** */
/*                       FUNCTION: MakeBase                       */
/* ************************************************************** */
/* Inside the body of the MakeBase() function below, put code to
   print one copy of the following 3-lines (base lines).
========================
========================
========================
*/
void MakeBase()
{
       /* code for function MakeBase goes in here,
          under this comment, and between the braces. */


}
/* ************************************************************** */