//******************************************************* 
// 
// Homework: 1 (Chapter 4/5) 
// 
// Name: Corey Brucklerr 
// 
// Class: C Programming, Spring 2015 
// 
// Date: 02/03/15
// 
// Description: Program which determines gross pay and outputs 
// be sent to a designated file.   This version does not use file pointers.
// 
// 
//******************************************************** 

#include <stdio.h>  
int main() 
{ 
	#define SIZE 5
    int clock_num = {98401, 526488, 765349, 34645, 127615}; /* employee clock number */ 
    float gross;                    /* gross pay for week (wage * hours) */ 
    float hours = {51.0, 42.5, 37.0, 45.0, 0};	/* number of hours worked per week */ 
    float wage = {10.6, 9.75, 10.5, 12.25, 8.35}; /* hourly wage */
    float calculate_gross;          /* gross pay for week (wage * hours)*/
    
	//Description of program's function
	printf 	("This is a program to calculate gross pay.\n"); 
	printf 	("You will be prompted for employee data.\n\n"); 

	int counter;
    
    //loops starts here
    for (counter = 1; counter <=5; ++counter)

    {

  	printf ("Enter the number of hours the employee worked");
   	scanf ("%f", &hours);




    /* Prompt for input values from the screen */ 
    printf ("This is a program to calculate gross pay.\n"); 
    printf ("You will be prompted for employee data.\n\n"); 
    printf ("Enter clock number for employee: "); 
    scanf ("%d", &clock_num); 
    printf ("Enter weekly wage for employee: "); 
    scanf ("%f", &wage); 
    printf ("Enter the number of hours the employee worked: "); 
    scanf ("%f", &hours); 

    /* calculate gross pay */ 
    gross = wage * hours;

    /* print out employee information */ 
    printf ("\n\t\tCorey, C Programming, First Homework Assignment\n\n\n"); 
    printf ("\t----------------------------------------------------------\n"); 
    printf ("\tClock # Wage Hours Gross\n"); 
    printf ("\t----------------------------------------------------------\n"); 

    printf ("\t%06i %5.2f %5.1f %7.2f\n",clock_num, wage, hours, gross); 
    
    }

    return (0); /* success */ 

} /* main */
