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 $ Small $ with radio button Then checked button to select: Pepperoni $ Sausage $ Mushrooms $ One Total button. I think the code similar to the other code is as following: Private Sub btnCalculateClick Handles btnCalculate.Click
Dim total As Double
If radLarge.Checked Or radsmall.Checked Then
Dim numPizza As Integer
If chkPepperoni.Checked Then
numExtras
End If
If chkSausage.Checked Then
numExtras
End If If chkMushroom.Checked Then
numExtras
End If
If radLarge.Checked Then
Total $ numPepperoni $
Else
Total $ numSausage $
Else
Total $ numMushrooms $
Else
Total $ numPepperoni $
Else
Total $ numSausage $
Else
Total $ numMushrooms $
End If
txtTotal.Text FormatCurrencyTotal Else
End If
End SubPrivate Sub btnCalculateClick Handles btnCalculate.Click
Dim fee As Double
If radAdult.Checked Or radSenior.Checked Then
Dim numExtras As Integer
If chkTennis.Checked Then
numExtras
End If
If chkLocker.Checked Then
numExtras
End If
If chkLaundry.Checked Then
numExtras
End If
If radAdult.Checked Then
fee numExtras
Else
fee numExtras
End If
txtFee.Text FormatCurrencyfee
Else
MessageBox.ShowYou 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
