Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Treasures Solution and Treasures Project. Save the application in the VB2012\Chap04 folder. Change the form file’s name to Main Form.vb. Change the form’s name to frmMain. Create the interface shown in Figure 4-61. When the user clicks the Calculate button, the button’s Click event procedure should add the item price to the total of the prices already entered; this amount represents the subtotal owed by the customer. The procedure should display the subtotal on the form. It also should display a 2% sales tax, the shipping charge, and the grand total owed by the customer. The grand total is calculated by adding together the subtotal, the 2% sales tax, and a $10 shipping charge. For example, if the user enters 30.55 as the price and then clicks the Calculate button, the button’s Click event procedure should display 30.55 as the subtotal, 0.61 as the sales tax, 10.00 as the shipping charge, and 41.16 as the total due. If the user subsequently enters 20 as the price and then clicks the Calculate button, the button’s Click event procedure should display 50.55 as the subtotal, 1.01 as the sales tax, 10.00 as the shipping charge, and 61.56 as the total due. However, when the subtotal is at least $100, the shipping charge is 0.00. Code the application. Save the solution and then start and test the application. 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.