Here is what I have no besides your size variable lol.
Code:
void get_Pay_Rate (int id[], float pay_Rate[], int hour[])
{
int i = 0;
int emp_Count = 0;
float pay_Rates = 0.0;
printf("Please enter pay rates that match the following Id's! \n\n");
for (i = 0; i < MAX_ARRAY;)
{
printf( "ID: %d\tPayrate: \tHours: ", id[i] );
fflush( stdout );
scanf_s("%f", &pay_Rate[i]);
scanf_s("%d", &hour[i]);
if (pay_Rate[i] < 6.0)
{
printf("You have entered an invalid payrate; please try again!\n\n");
continue;
}
else if (hour[i] < 0)
{
printf("You have entered an invalid amount of hours; please try again!\n\n");
continue;
}
else
{
i++;
}
}
} // End of get_payRate
what do I need to do to make all the inputs line up nice? The hours input lines up nicely but the other doesn't.