I am lost - simple calculations
Posted on 2001-06-18
I hav been trying to do this all nite, The program itself runs ok, But when i enter the over time hours it does not give me an amount. it returns 0.00.
What have i done wrong towars the end of this program as it is only the overtime pay bit that doesnt work.
printf("\n Please enter the amount of standard hours you worked ");
printf("\n Enter Hourly rate ");
amount = (float)hours*(float)pounds;
printf("\n Wages for week excluding Over time %.2f pounds \n");
ovrtimrat = (float)1.25*(float)pounds;
printf("\n Over time Rate is %.2f pounds \n");
printf("\n Enter hours of overtime worked ");
ovmony = (float)ovrtimrat*(float)hoursa;
printf("\n Overtime pay is %.2f pounds");