Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose a soccer team needs an application to record the number of points scored

ID: 653729 • Letter: S

Question

Suppose a soccer team needs an application to record the number of points scored by its players during a game. Create an application that asks how many players the team has, and then asks for the names of each player. The program should declare an array of strings large enough to hold the number of points scored by each player. The application should have a menu system or buttons that perform the following:

- Display a form that can be used during a game to record the points scored by each player.

INPUT VALIDATION: DO NOT ACCEPT NEGATIVE NUMBERS AS POINTS.

Explanation / Answer

Menu Systems or Buttons

Public Function InputBox

{

ByVal promt As String , _

Optional ByVal Title As String = " ", _

Optional ByVal DefaultResponse As String = " ", _

Optional ByVal Xpos As Integer = -1, _

Optional ByVal ypos As integer = -1, _

)

As String

Private Sub btnmessage_Click(ByVal sender As System.object,_ ByVal e As a System.EventAR

Handles btnmessage.Click

InputBox("Enter the player's name")

End Sub

Private Sub btnmessage_Click(ByVal sender As System.object,_ ByVal e As a System.EventAR

Handles btnmessage.Click

InputBox("Enter the points scored by each player")

End Sub

Private Sub btnmessage_Click(ByVal sender As System.object,_ ByVal e As a System.EventAR

Handles btnmessage.Click

InputBox("Enter the total points scored by each player and by the team")

If IsNumeric(Text1, intPoints) true then

if intPoints > 0 then

MsgBox(" valid points");

Else

MsgBox("please insert positive points");

EndIf

End Sub

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote