Web Hosting Talk







View Full Version : VB - accumulating commissions


Hostlead
11-06-2005, 11:25 PM
Hello,

I am not sure how to proceed. I have to say that I am a beginner in VB.
Here is the problem: I need to write a program for accumulating sales commission.

up to $2000 -> 1% commission
from $2001 - $3000 -> 2% commission
$3001 or higher -> 3% commission

So let's say sale one is $1500 and sale two is $1000 then the commission should be 1500*0.01 + 500*0.01 +500*0.02

How would you express that in VB?

Thank you in advance!

HL