problem :

write a program to calculate commission for a salesman.the commission is calculated according to following rates:

sales commission rate
30001 15%
22001-30000 10%
12001-22000 7%
5001-12000 3%
0-5000 0%
So this is your assignment?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const  double TAX_15 = 0.15;
const  double TAX_10 = 0.1;
const double TAX_7 = 00.7;
const double TAX_3 = 00.3;
const double TAX_0 = 00.0;

cin>>"your variable"

if (your variable <= 30001 ) 
{
total_sum = TAX_15 * your variable; 
return "your variable";  (if you use fnc) 
}
else 


I hope you can do the same for the followings.....
Topic archived. No new replies allowed.