In this exercise, you experiment with the Visual Basic conversion functions listed in Appendix C. Open the Conversion Functions Solution (Conversion Functions Solution. sln) file contained in the VB2012\Chap03\Conversion Functions Solution folder. Start the application. Test the application using 4 and 10 as the item price and number purchased, respectively. What appears in the Total price box when you click the Calculate button? Now delete the number 10 from the Number purchased box. What appears in the Total price box when you click the Calculate button? Stop the application. Modify the code so that it uses the Visual Basic conversion functions listed in Appendix C. For example, to convert the item price to Decimal, use decPrice = CDec(txtPrice.Text). Save the solution and then start the application. Test the application using 4 and 10 as the item price and number purchased, respectively. What appears in the Total price box when you click the Calculate button? Now delete the number 10 from the Number purchased box. What happens when you click the Calculate button? Stop the application by clicking DEBUG on the menu bar and then clicking Stop Debugging. What does this exercise tell you about the difference between the TryParse methods and the Visual Basic conversion functions? Close the Code Editor window and then close the solution.
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.