2010年Visual Basic中的佣金计算 [英] Commission calculation in visual basic 2010

查看:91
本文介绍了2010年Visual Basic中的佣金计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

有人可以在这里帮助我,我已经尝试创建一个程序来计算每人每周的销售佣金。我不确定是使用IF还是Case方法。
senario 如下:鉴于佣金率= .13,基本工资=& 100且销售配额= 500意味着佣金仅在销售大于或等于500件时获得。

Can somebody assist me here, I have trying create a program to calculate sales commission per person weekly. I'm not sure whether to use IF or Case approach. The senario is as follows: Given Commission rate=.13, Base pay=&100 and the sales quota=500 meaning commission is earned only for sale greater or equal to 500 items.

推荐答案

佣金适用于超过500的销售。

The commission is applied to sales over 500.

所以你需要减去500从总销售额中,如果剩余部分大于零,则将佣金百分比应用于剩余部分。

So you need to subtract 500 from the total sales and if the remainder is larger than zero you apply the commission percentage to the remainder.

我没有说大于零的选择案例是吗?

I did not say select case larger than zero did I?

虽然你可以使用其中任何一个。

Although you could use either one.

为什么不这样做,告诉我们你最喜欢哪一个以及为什么?

Why dont you do it both ways and tell us which one you like best and why?


这篇关于2010年Visual Basic中的佣金计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆