USING SCANNER CLASS WRITE A PROGRAM TO ACCEPT THE MONTHLY SALES OF A
SALESMAN OF AN ADVERTISING COMPANY AND COMPUTE THE COMMISSION RECEIVED
ACCORDING TO THE FOLLOWING CRITERIA.
SALES
COMMISSION
UPTO RS 5,000
NIL
>RS 5,000 UPTO 10,000
12%
>RS 10,000UPTO 15,000
15%
>15,000
18%
APART FROM THIS SALESMEN GETS TRAVELLING ALLOWANCE OF RS 1500/-.
Answers
Answered by
0
Answer:
SI1=(p*5.0*1)/100.0;
System.out.println(“Interest for the first year =”+SI1);
SI2=((p+SI1)*5.0*1)/100.0;
System.out.println(“Interest for the second year =”+SI2);
SI3=((SI1+SI2+p)*5.0*1)/100;
A3=SI1+SI2+SI3+p;
System.out.println(“Amount after three years =”+A3);
Explanation:
Similar questions