In Exercises 59 through 66, write an event procedure with the header Private Sub btnCompute_Click(...) Handles btnCompute.Click, and having one line for each step. Lines that display data should use the given variable names.
Profit from Stock The following steps calculate the percentage profit from the sale of a stock:
(a) Declare the variables purchasePrice, sellingPrice, and percentProfit as type Double.
(b) Assign the value 10 to the variable purchasePrice.
(c) Assign the value 15 to the variable sellingPrice.
(d) Assign to the variable percentProfit, 100 times the value of the difference between sellingPrice and purchasePrice divided by purchasePrice.
(e) Display the value of the variable percentProfit in a list box.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.