Answered step by step
Verified Expert Solution
Question
1 Approved Answer
what is the output in these problems 6 Private sub btnoisplayclick() Handles btnoisplay.click Din price, markdown, salestax, finalcost As becinal Inputbata(price, markdoun, salesTax) inalcost CostorIten(price,
what is the output in these problems
6 Private sub btnoisplayclick() Handles btnoisplay.click Din price, markdown, salestax, finalcost As becinal Inputbata(price, markdoun, salesTax) inalcost CostorIten(price, narkdom, salesTax) bisplayoutput (price, rinalcost) End Sub Sub Inputbata(ByRef price As Decial, ByRef sarkdown As Decinal, OyRef salesTax As Decinal) cDec(InputBOx( "Price price of item:")) arkdon cDec(Inputbox( percentage discount:) salesTax-CDec(Input Box( "Percentage state sales tax:")) Function Costorites(pr As Decinal, nd As Decinal st As Decinal) As Decinal oin reducedPrice, cost As Decima.1 reducedprice pr((d 100)pr) cost reducedPrice((st /100)reducedPrice) End Sh Sub Displayoutput(anount As Decinal, custonerCost As Decinal lstoutput.Items Add original price:&anount TostringC) Istoutput.Items.Add("Cost:&custonerCost.Tostring("C)) End Sub Assume the three rponses ane 125, 20, and 6) & Private Sub btncalculate click(..) andles btncalculate.click i wholesalecost, saleprice, percentCommission sAlesTax, profit As Decinal InputData(wholesalecost, salePrice, percent connission) calculatesonevalues(wholesalecost, salePrice, percentconmission End Esel yoata(salestax, Brt Sub InputatA(ByRet wholesalecost As Decinal salesTA protit) Displayoata(salesTax, profit) , Byeer salePrice As Decinal, ByRef percent Commission As Decinal) wholesalecost180 salePrice3e0 percentcomission End Sub Sub CalculateSonevalues(wholesaleCost As Decinal saleprice As Decinal, percentcoenission As Decinal ByRef salesTax As Decinal, ByRer profit As Decinal) salesTax8.86D salePrice profitsaleprice wholesalecost salePrice (percent commission /189) Sub Displayoatat(salesTax As Decinal, profit As Decinal) 6 Private sub btnoisplayclick() Handles btnoisplay.click Din price, markdown, salestax, finalcost As becinal Inputbata(price, markdoun, salesTax) inalcost CostorIten(price, narkdom, salesTax) bisplayoutput (price, rinalcost) End Sub Sub Inputbata(ByRef price As Decial, ByRef sarkdown As Decinal, OyRef salesTax As Decinal) cDec(InputBOx( "Price price of item:")) arkdon cDec(Inputbox( percentage discount:) salesTax-CDec(Input Box( "Percentage state sales tax:")) Function Costorites(pr As Decinal, nd As Decinal st As Decinal) As Decinal oin reducedPrice, cost As Decima.1 reducedprice pr((d 100)pr) cost reducedPrice((st /100)reducedPrice) End Sh Sub Displayoutput(anount As Decinal, custonerCost As Decinal lstoutput.Items Add original price:&anount TostringC) Istoutput.Items.Add("Cost:&custonerCost.Tostring("C)) End Sub Assume the three rponses ane 125, 20, and 6) & Private Sub btncalculate click(..) andles btncalculate.click i wholesalecost, saleprice, percentCommission sAlesTax, profit As Decinal InputData(wholesalecost, salePrice, percent connission) calculatesonevalues(wholesalecost, salePrice, percentconmission End Esel yoata(salestax, Brt Sub InputatA(ByRet wholesalecost As Decinal salesTA protit) Displayoata(salesTax, profit) , Byeer salePrice As Decinal, ByRef percent Commission As Decinal) wholesalecost180 salePrice3e0 percentcomission End Sub Sub CalculateSonevalues(wholesaleCost As Decinal saleprice As Decinal, percentcoenission As Decinal ByRef salesTax As Decinal, ByRer profit As Decinal) salesTax8.86D salePrice profitsaleprice wholesalecost salePrice (percent commission /189) Sub Displayoatat(salesTax As Decinal, profit As Decinal)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started