Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lines 1 5 9 - 1 6 4 won't execute even if input is 1 or 1 0 , please help resolve this Private Sub
Lines won't execute even if input is or please help resolve this
Private Sub btnCloseClicksender As Object, e As EventArgs Handles
btnClose.Click
'Close program
MeClose
End Sub
Private Sub btnRestartClicksender As Object, e As EventArgs Handles btnRestart.Click
'Reset program
txtGPA.Text
txtScore.Text
txtOutput.Visible False
radSATChecked False
radSATChecked False
radSATChecked False
radSATChecked False
radSATChecked False
radHSChecked False
radHSChecked False
radHSChecked False
radHSChecked False
radHSChecked False
radHSChecked False
radCDChecked False
radCDChecked False
radCDChecked False
radCDChecked False
radCDChecked False
radCDChecked False
radCDChecked False
chkGeoChecked False
chkGeoChecked False
chkAlumniChecked False
chkAlumniChecked False
radEssayChecked False
radEssayChecked False
radEssayChecked False
chkLSChecked False
chkLSChecked False
chkLSChecked False
radMiscChecked False
radMiscChecked False
radMiscChecked False
radMiscChecked False
End Sub
Private Sub btnComputeClicksender As Object, e As EventArgs Handles btnCompute.Click
Dim dblGPA As Double
Dim dblScore As Double
Dim dblSAT As Double
Dim dblHS As Double
Dim dblCD As Double
Dim dblGEO As Double
Dim dblALUM As Double
Dim dblESSAY As Double
Dim dblLS As Double
Dim dblMISC As Double
Dim dblUncapped As Double
Dim dblCapped As Double
Dim dblTotScore As Double
'Display Error Message
dblGPA CDbltxtGPAText
If dblGPA Or dblGPA Then
txtScore.Text
txtOutput.Visible True
txtOutput.Text "GPA must be between and
End If
'Calculate Score
dblScore dblGPA
txtScore.Text dblScore
'Add total points
If radSATChecked True Then
dblSAT radSATTag
End If
If radSATChecked True Then
dblSAT radSATTag
End If
If radSATChecked True Then
dblSAT radSATTag
End If
If radSATChecked True Then
dblSAT radSATTag
End If
If radSATChecked True Then
dblSAT radSATTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radHSChecked True Then
dblHS radHSTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If radCDChecked True Then
dblCD radCDTag
End If
If chkGeoChecked True Then
dblGEO chkGeoTag
End If
If chkGeoChecked True Then
dblGEO chkGeoTag
End If
If chkGeoChecked True Then
dblGEO chkGeoTag
End If
If chkAlumniChecked True Then
dblALUM chkAlumniTag
End If
If chkAlumniChecked True Then
dblALUM chkAlumniTag
End If
If radEssayChecked True Then
dblESSAY radEssayTag
End If
If radEssayChecked True Then
dblESSAY radEssayTag
End If
If radEssayChecked True Then
dblESSAY radEssayTag
End If
If chkLSChecked True Then
dblLS chkLSTag
End If
If chkLSChecked True Then
dblLS chkLSTag
End If
If chkLSChecked True Then
dblLS chkLSTag
End If
If radMiscChecked True Then
dblMISC radMiscTag
End If
If radMiscChecked True Then
dblMISC radMiscTag
End If
If radMiscChecked True Then
dblMISC radMiscTag
End If
If radMiscChecked True Then
dblMISC radMiscTag
End If
'Calculate total points for top half
dblUncapped dblSAT dblHS dblCD
'Calculate total points for bottom half options
dblCapped dblGEO dblALUM dblESSAY dblLS dblMISC
If dblCapped Then
dblCapped
End If
dblTotScore dblScore dblCapped dblUncapped
If dblTotScore Then
txtOutput.Visible True
txtOutput.Text "Total Points: & dblTotScore & Admitted!"
Else
txtOutput.Visible True
txtOutput.Text dblTotScore & Rejected"
End if
Here is a picture of the correct output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started