The Donut Shoppe sells four varieties of doughnuts: Glazed ($.75), Sugar ($.75), Chocolate ($.75), and Filled ($.95).

Question:

The Donut Shoppe sells four varieties of doughnuts: Glazed ($.75), Sugar ($.75), Chocolate ($.75), and Filled ($.95). It also sells regular coffee ($1.50) and cappuccino ($2.75). The store manager wants you to create an application that displays a customer’s subtotal, 4.5% sales tax, and total due. Create the application, using the following names for the solution and project, respectively: Donut Solution and Donut Project. Save the application in the VB2015\Chap07 folder. Create the interface shown in Figure 7-54. The image for the picture box is stored in the VB2015\Chap07\ DonutCoffee.png file. When coding the application, use one function to calculate and return the cost of the doughnut, and use another function to calculate and return the cost of the coffee. Use a third function to calculate and return the sales tax. Test the application appropriately.

Donut Shoppe Our doughnuts and coffee are the best in town! Doughnut choices Glazed (5.75) Subtotal: O sugar ($.75) Sales tax: O Chocolate (5.75) Total due: O Eilled (S.95) Coffee choices Calculate None Regular ($1.50) Exit Cappuccino ($2.75)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: