Question: Create code similar to the following. My program should indicate create Title Pizza : Large $ 1 5 , Small $ 1 0 . with

Create code similar to the following. My program should indicate create Title Pizza : Large $15, Small $10. with 2 radio button . Then 3 checked button to select: Pepperoni $4, Sausage $3, Mushrooms $2, One Total button. I think the code similar to the other code is as following: Private Sub btnCalculate_Click(...) Handles btnCalculate.Click
Dim total As Double =0
If radLarge.Checked Or radsmall.Checked Then
Dim numPizza As Integer =0
If chkPepperoni.Checked Then
numExtras +=1
End If
If chkSausage.Checked Then
numExtras +=1
End If If chkMushroom.Checked Then
numExtras +=1
End If
If radLarge.Checked Then
Total = $15+ numPepperoni $4
Else
Total = $15+ numSausage $3
Else
Total = $15+ numMushrooms $2
Else
Total = $10+ numPepperoni $4
Else
Total = $10+ numSausage $3
Else
Total = $10+ numMushrooms $2
End If
txtTotal.Text = FormatCurrency(Total) Else
End If
End SubPrivate Sub btnCalculate_Click(...) Handles btnCalculate.Click
Dim fee As Double =0
If radAdult.Checked Or radSenior.Checked Then
Dim numExtras As Integer =0
If chkTennis.Checked Then
numExtras +=1
End If
If chkLocker.Checked Then
numExtras +=1
End If
If chkLaundry.Checked Then
numExtras +=1
End If
If radAdult.Checked Then
fee =100+ numExtras *25
Else
fee =75+ numExtras *25
End If
txtFee.Text = FormatCurrency(fee)
Else
MessageBox.Show("You must select a membership category.")
End If
End Sub

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!