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
Retail price calculator
Collapse
X
-
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. -
Originally posted by MortiisI 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]Comment
Comment