AllExperts > Experts 
Search      

VB.NET

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB.NET Answers
Question Library

Ask a question about VB.NET
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Brandon Drake
Expertise
I can answer questions regarding the Graphics object, file access, general optimization, printing (on paper), user controls, program mathematics, the registry, creating macros, processes, and fundamental or basic questions. I have made a few asp.net pages but I do not know the language extensively. I have not done much work with databases but I have created my own database systems.

Experience
I have been programming with visual basic for 6 years. In all I have written programs in about 8 programming languages, although, I only know about 3 well. I have written a few applications but mainly I like to write programs for fun.

 
   

You are here:  Experts > Computing/Technology > Basic > VB.NET > Visual basic code question

Topic: VB.NET



Expert: Brandon Drake
Date: 5/7/2006
Subject: Visual basic code question

Question
I've been trying to figure out the coding to calculate the commissions for a sales team after they enter the sales

Sales                        Commission
1 - 100,000                   2% * sales
100,001 - 200,000             4% * sales
200,001 - 300,000             6% * sales
300,001 - 400,000             8% * sales
400,001 and over             10% * sales

The sales may include decimals everytime I try to code it, it just doesn't work right, I'm using visual studio.NET 2003  

Answer
Loretta,

You will probably want to use a "Select Case" to determine the sales and then get the commission from that.  You can search for "Select Case" in Help for more information on it.  The code would start something like "Select Case sales".

You will also need a variable to hold the commission once you determine the sales.

If you have any more questions or if something I wrote was unclear you can always send me another question.



Good Luck,

Brandon Drake

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.