/************************************************************************/
/*                                                                      */
/*         Code generated by FED-CASE V1.2  Code Generator              */
/*                  © Joosen Software Development                       */
/*                  All rights reserved 1993-1995                       */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/*                                                                      */
/*                          Start of Includes                           */
/*                                                                      */
/************************************************************************/

#include <stdio.h>

/************************************************************************/
/*                                                                      */
/*                           End of Includes                            */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                    Start of source prototype file                    */
/*                                                                      */
/************************************************************************/

#include <proto/proto_vowel.h>

/************************************************************************/
/*                                                                      */
/*                     End of source prototype file                     */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                 Start of global variable declaration                 */
/*                                                                      */
/************************************************************************/

int GI_a;
int GI_e;
int GI_i;
int GI_o;
int GI_u;
char GC_ch;
int GI_U;

/************************************************************************/
/*                                                                      */
/*                  End of global variable declaration                  */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/* Procedure  : void main()                                             */
/* Function   :                                                         */
/* Designer   : Christian Joosen                                       */
/* Date       : Fri Mar 10 21:17:33 1995                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void main()
{

    GI_a = 0;
    GI_e = 0;
    GI_i = 0;
    GI_o = 0;
    GI_u = 0;
    printf( "Enter some text: enter # to quit" );          /* printf:  */
    do
    {
        switch ( GC_ch )
        {
            case 'a':
            case 'b':
            case 'c':
            case 'd':
                GI_a ++;
                break;                                     /* case 'a'..'d' */
            case 'e':
            case 'E':
                GI_e ++;
                break;                                     /* case 'e','E' */
            case 'i':
            case 'I':
                GI_i ++;
                break;                                     /* case 'i','I' */
            case 'o':
            case 'O':
                GI_o ++;
                break;                                     /* case 'o','O' */
            case 'u':
            case 'U':
                GI_U ++;
                break;                                     /* case 'u','U' */
        }                                                  /* end of switch(GC_ch) */
    } while( ( GC_ch = getchar( ) ) != '#' );              /* getchar:  */
    printf( "Number of vowels : A E I O U\n" );            /* printf:  */
    printf( "                   %d\n", GI_a ) ;            /* printf:  */
    printf( "                   %d\n", GI_e ) ;
    printf( "                   %d\n", GI_i ) ;
    printf( "                   %d\n", GI_o ) ;
    printf( "                   %d\n", GI_u ) ;
}                                                          /* end of V_main */
