Question: In every exercise determine the output displayed when the button is clicked (Check the assumptions when listed at the end of the exercise) Private Sub

 In every exercise determine the output displayed when the button is

In every exercise determine the output displayed when the button is clicked (Check the assumptions when listed at the end of the exercise) Private Sub btnDisplay Click..) Handles btnDisplay Click Dim price markdown, salesTax. finalCost As Decimal finalCost - osftem(prearkdown, salesTaxi Display utputiprice, finalCost) End Sub Sub InputData(ByRef price As Decima ByRef markdown As Decimal. By:Ref sal Tax As Decimal) price CDec InputBox( Prceofitem:")) markdown-CDeclinputBoo-percentage discount salesTax CDec(InputBox("Percentage state sales tax")) End Sub Function Costofitemipr As Decimal md As Decimal st As Decimal) As Decimal reducedPrice-pr ((md /100)pr) cost = reducedPrice + ((st / 100) * reducedPrice) Return cost End Sub Sub Displayutput(amount As Decimal customerCost As Decimal) C) IstoutputItems Add Cost: &customerCost ToString End Sub (Assume the thre responses are, 125, 20, and 6.) Private Su btnCalclate Clickl) Handles btnCalculate Click Dim wholesaleCost salePrice percentCommission, salesTa profit As Decimal InputDataiwholesaleCost salePrice. percentCommission) CalculateSomeValueswholesaleCost salePrice percentCommission salesTas profit) DisplayDatalsalax Rrofit) End Sub Sub InputData(ByRef wholesaleCost As Decimal. ByRef salePrice As ByRef As Decimal wholesaleCost 100 salePrig? = 300 percentCommission5 End Sub Sub CalculateSomeValues(wholesaleCost As Decimal salePrice As Decimal. percentCommission As Decimal. ByRef salesTax As Decimal. ByRef proft As Decimal) salesTax0.06DsalePrice profitsalePrice - wholesaleCost - salePric (percentCommissien 100) Sub DisplayDatatsalesTax As Decimal, profit As Decimal) stOutputltems Add sales taxsalesTax.ToString C) stoutoutltemsAddr ofit & profit ToStringC) End Sub

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!