7. The Donut Shoppe sells four varieties of doughnuts: Glazed ($1.05), Sugar ($1.05),
Chocolate ($1.25), and Filled ($1.50). 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, 6% sales tax, and total due. Create a Windows Forms application. Use the following names for the project and solution, respectively: Donut Project and Donut Solution. When coding the application, use one independent Sub procedure to determine the subtotal, which is the total cost without the sales tax. Use a function to determine the sales tax. Use an event-handling Sub procedure to clear the output. Save the solution and then start and test the application.

1) Use only Sub routines for this assignment
2) Your calculate button cost MUST look like this:
Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

Option Strict On

Public Class Form1

    Private subTotal As Double
    Private tax As Double

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click
    End Sub

    Private Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click
    End Sub

    Private Sub calcSub()
       subTotal = 0.0
       If radGlazed.Checked = True Then
            subTotal += 1.05
       ElseIf radSugar.Checked = True Then
            subTotal += 1.05
       ElseIf radChoco.Checked = True Then
            subTotal += 1.25
       ElseIf radFill.Checked = True Then
            subTotal += 1.5

By purchasing this solution you'll be able to access the following files:

for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Software Training (all Microsoft products and more) Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats