Problems: Correcting Code ErrorsThe following sample of code contains errors. Rewrite the incorrect statements to correct all errors.
An application needs to display whether or not a student has been accepted to college. The program needs to display either "Accepted" or "Not Accepted." A student must have an SAT score of 1750 or higher and a GPA of 3.3 or higher. Rewrite the following If statement to correct all errors:If intSAT <= 1750 OrElse decGPA >= 3.3 Then lblMessage.Text = "Not Accepted"Else lblMessage.Text = "Accepted"End If
What will be an ideal response?
If intSAT >= 1750 AndAlso decGPA >= 3.3 Then
lblMessage.Text = "Accepted"
Else
lblMessage.Text = "Not Accepted"
End If
Computer Science & Information Technology
You might also like to view...
________ is/are used to verify that the correct value is entered in a field and prevents the user from leaving the current field until the problem is fixed
A) Input masks B) Data validation text C) Data validation rules D) Field validation rules
Computer Science & Information Technology
A thumb drive is an example of buffered memory
Indicate whether the statement is true or false
Computer Science & Information Technology