/****************************************************************************/
/* Salary:This program calaculates the salary. 			            */
/* This program gives the salary from the hours                             */
/* given by the user							    */
/*									    */
/* Written by: Vinita Bhatia						    */
/* Revision 0: June 6, 1996 						    */
/*									    */
/****************************************************************************/

#include <stdio.h>
#define HOURLYRATE  8.00                    /* normal hourly rate  */
#define OTIMERATE  12.00                  /* overtime rate       */  

main()
{
    int      hr;			/* number of hours worked     	*/
    float    salary;                    /* total amount earned         */     


    printf( "Salary calculation program.\n" );
    printf( "Enter the no of hours? " );
    scanf(  "%d", &hr);
    if (hr > 40)
      salary = (hr - 40)* OTIMERATE + (40*HOURLYRATE);
    else
      salary = hr * HOURLYRATE;
   
    printf( "Salary is : %.2f\n", salary  );

    return 0;
}