Mini_me
10-13-2004, 02:40 PM
Hi any ideas how i can write this code? :
"A company is paying its employees apart from the basic salary,two allowances,a family
allowance and a timeallowance.
The family allowance is 30 euros per child,the timeallowance is 45 euros per three years."
I want the program to read the employee's basic salary,the number of his/her children,the
years of his/her previous employment and finally to print his/her total salary rounded to
the smallest integer number.
I use the sstream library and i would like this program to use the most simple C code.
Thank you so much!!
"A company is paying its employees apart from the basic salary,two allowances,a family
allowance and a timeallowance.
The family allowance is 30 euros per child,the timeallowance is 45 euros per three years."
I want the program to read the employee's basic salary,the number of his/her children,the
years of his/her previous employment and finally to print his/her total salary rounded to
the smallest integer number.
I use the sstream library and i would like this program to use the most simple C code.
Thank you so much!!