Retail price calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mortiis
    New Member
    • Aug 2007
    • 1

    Retail price calculator

    I am in school and taking a visual basic class, I need to write a program that will accept the wholesale amount and add a markup percentage and return the total retail price. I am not sure where to start, any help would be appreciated
  • awking
    New Member
    • Jul 2007
    • 4

    #2
    You need to decide what variables you will need: ie. a variable to hold the wholesale price, another variable to hold the markup rate ie .05, and a variable to hold the retail price calculated. You will also need a function routine that will accept the wholesale price and rate as parameters and return the retail price as a return value.

    Comment

    • megatoke
      New Member
      • Aug 2007
      • 3

      #3
      Originally posted by Mortiis
      I am in school and taking a visual basic class, I need to write a program that will accept the wholesale amount and add a markup percentage and return the total retail price. I am not sure where to start, any help would be appreciated

      On your form add 2 textbox, one called txtWholesale and one called txtMarkUp. Then add a label for the results called lblRetail. Add a command button called cmdCalculate to start the calculation.

      [CODE=vb]Private Sub cmdCalculate_Cl ick()
      lblRetail.Capti on = Format(txtWhole sale.Text + ((txtWholesale. Text * (txtMarkup.Text / 100))), "0.00")
      End Sub[/CODE]
      Last edited by Killer42; Aug 20 '07, 02:43 AM. Reason: Added CODE=vb tag

      Comment

      Working...