OK once again thanks to all who helped, I finally got it :D, here it is.
#include <iostream.h>
main()
{
double salary;
double hours;
double tax;
Type: Posts; User: robshirah
OK once again thanks to all who helped, I finally got it :D, here it is.
#include <iostream.h>
main()
{
double salary;
double hours;
double tax;
Ok, first of all id like to thank all those that helped : ) Now, I still have the same problem, the code is adding 40+ hours(overtime pay) to be more than it acually is.
#include <iostream.h>...
I have another problem here, I added hours & overtime into the program, overtime pay being salary+1, if over 40 hours. it compiles correctly but it takes the last dollar & rounds up, 41*11 = 451,...
Dougdbug you nailed it, thanks alot, & thanks to everyone for the help.
I did as you suggested, net = salary/tax; , with salary input at 100 it gives me an answer of 400????? For some reason it seems to be multiplying (salary)100 times 25
double salary; //workers...
Thanks alot
I want to get the workers salary, then display the salary after taxes are taken out(salary divided by 25%). So I need to know the correct way to divide salary by 25% then make it into a variable...