/* The program determines the gross pay and ouputs the following
format:
--------------------------------------------------------------------------
Clock# Wage Hours Gross
--------------------------------------------------------------------------
98401 10.60 51.0 540.60
*/
#include <stdio.h>
main ()
{
/* declare variables */
int clock;
float wage;
float hours;
float gross;
/* set values */
gross = wage * hours;
/* begin output */
printf ("--------------------------------------------------------------\n");
printf ("Clock# Wage Hours Gross \n");
printf ("--------------------------------------------------------------\n");
printf ("Please enter a Clock#");
scanf("%i",&clock);
printf ("Please enter wage");
scanf("%i",&wage);
printf ("Please enter hours worked");
scanf("%i",&hours);
printf ("%i %f %f %f\n", clock, wage, hours, gross);
}