Question
Soccer Team Score Application Suppose a soccer team needs an application to record the number of points scored by its players during a game. Create
Soccer Team Score Application
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 player names and declare an array of integers 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 allowing the user to enter the players names.
Display a form that can be used during a game to record the points scored by each player.
Display the total points scored by each player and by the team.
Input validation: Do not accept negative numbers as points.
You will use only menu options only. No buttons to be used. The names entered by the user should be displayed on the form in a listbox or combo box in addition to storing it in the array. Include in the menu a menu option About which when clicked, displays an About Box that displays the Application name, a brief description of the application and the programmer name.
2. Create 2 global arrays in the Main Module. They will be two single dimensional arrays to hold the names and scores. These arrays will be parallel. In other words the name array element with an index of 0 will hold the name and the score array element with an index of 0 will hold the score for the first player.
3. When retrieving the scores of a player, the SelectedIndex property of the Combo Box can be used to retrieve parallel array items. In this way the number of lines of code can be reduced. Example Since this was not specifically in the text here is an sample where strNames() is the name of the array: intScore= intPlayerScores(cboNames.SelectedIndex)
4. For the About menu option, include an About Box that was created using the AboutBox template. The fields on the form must be customized for this program to display the Application name (Soccer Team Score Keeping ), a brief description of the application and the programmer name.
5. Coding must be EFFICIENT. It is suggested that you flowchart the validations and calculations to determine all of the possibilities before actually writing the code.
Other Requirements:
1. 2 arrays for names and scores
2. Main Module included to hold arrays
3. Main form with menu options
4. Form that allows the user to enter count of players (maybe same form or separate form)
5. Retrieve student names in Combo Box using the name array when Enter Score option is selected
6. Display names and scores when the name is selected. Editing of scores should not be allowed once entered
7. Option to display Total Team Score
8. Display error message when the user tries to display a score without a name being selected
9. Display the customized About Box using the template.
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