ld32: WARNING 110: Floating-point parameters exist in the call for "printf", a V
ARARG function, in object "ass.o" without a prototype -- would result in invalid
result. Definition can be found in object "/usr/lib32/mips3/libc.so"
int main()
{
float salary, rate;
int hours, overtime;
hours = 0;
while(hours > 40 || hours < 0)
{
printf("Enter number of hours worked:\n " );
scanf( "%d", &hours );
}
//if ( hours < 0 || hours >40)
//printf("The number of hours should not exceed 40, please try again\n");
printf("Enter number of overtime hours worked:\n");
scanf( "%d", &overtime);
if (overtime <0 || overtime>72)
printf("The number of hours should not exceed 72, please try again\n");
printf( "Enter hourly rate of the worker: $ " );
scanf( "%f", &rate );
salary = (float) (overtime * 1.5 * rate + hours * rate);
printf( "Salary is %f", salary);
return 0;
}