this is what my book says
1.Retail Price Calculator
Write an application that accepts from the user the wholesale cost of an item and its markup percentage.(for example, if an item's wholesale cost is $5 and its retail price is $10, then the markup price is 100%)
The program should contain a function named CalculateRetail that receives the wholesale cost and markup percentage as arguments, and returns the retail price of the item.
When the user clicks the Get retail button, the program should do the following :
>verify that the values entered by the user for the wholesale cost and the markup percent are numeric and not negative
>call the CalculateRetail fuction
>dispay the retail cost as returned from the fuction
this wat i got so fart i dont know wat im missing or i got wrong
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetRetail.Click lblRetail.Caption = Format(txtWholesale.Text + ((txtWholesale.Text * (txtMarkup.Text / 100))), "0.00") End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' End the aplication' End Sub End Class
This post has been edited by boss_javi: 13 April 2009 - 11:05 AM

New Topic/Question
Reply




MultiQuote






|