The Doughnut Shoppe sells four varieties of doughnuts: Glazed ($.65), Sugar ($.65), Chocolate ($.85), and Filled ($1.00). It also sells regular coffee ($1.80) and cappuccino ($2.50). The store manager wants an application that she can use to calculate and display a customerâ€™s subtotal, 3% sales tax, and total due.
a. Create a Visual Basic Windows application. Use the following names for the solution and project, respectively: Doughnut Shoppe Solution and Doughnut Shoppe Project. Save the application in the ClearlyVB2012Chap17 folder. Change the name of the form file on your disk to frmMain.vb. If necessary, change the formâ€™s name to frmMain.
b. Create the interface shown in Figure 17-19. The image in the picture box is contained in the ClearlyVB2012Chap17Doughnut.png file.
c. Code the application. Use one function to calculate and return the cost of the doughnut. Use another function to calculate and return the cost of the coffee. Use a third function to calculate and return the 3% sales tax. Use a Sub procedure to clear the subtotal, sales tax, and total due amounts when a different radio button is selected.
d. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.