Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Determine the output displayed when the button is clicked on. Private Sub btnCalculate_Click() Handles btnCalculate.Click Dim wholesaleCost, salePrice, percentCommission, salesTax, profit As Decimal InputData(wholesaleCost, salePrice,

Determine the output displayed when the button is clicked on.

Private Sub btnCalculate_Click() Handles btnCalculate.Click

Dim wholesaleCost, salePrice, percentCommission,

salesTax, profit As Decimal

InputData(wholesaleCost, salePrice, percentCommission)

CalculateSomeValues(wholesaleCost, salePrice, percentCommission, salesTax,profit)

DisplayData(salesTax, profit)

End Sub

Sub InputData(ByRefWholesaleCost As Decimal, ByRef salePrice As Decimal, ByRef percentCommission As Decimal)

wholesaleCost=100

salePrice=300

percentCommission=5

End Sub

Sub CalculateSomeValues(wholesaleCost As Decimal, salePrice As Decimal, percentCommission As Decimal, ByRef profit As Decimal)

salesTax=0.06D*salePrice

profit=salePrice-wholesaleCost-salePrice*(percentCommission/100)

End Sub

Sub DisplayData(salesTax As Decimal, profit As Decimal)

lstOutput.Items.Add(sales tax: &salesTax.ToString(C))

lstOutput.Items.Add(profit: & profit.ToString(C))

End Sub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

3. SCC Soft Computer

Answered: 1 week ago

Question

2. KMPG LLP

Answered: 1 week ago

Question

5. Wyeth Pharmaceuticals

Answered: 1 week ago