Question: QUESTION 2 The one - dimensional ( 1 D ) array Clubs [ ] is used to store the names of 1 0 football clubs
QUESTION
The onedimensional D array Clubs is used to store the names of football clubs in a local sports league.
The twodimensional D array Statistics is used to store, for each football club, the number of: matches won matches drawn matches lost.
The D array Points is used to store the total number of points each football club has been awarded.
The position of any football clubs data is the same in all three arrays. For example, the data in index of Statistics and index of Points belongs to the football club in index of Clubs
The variable Matches stores the number of matches played by each team. Each team plays the same number of matches.
Points are awarded for: a win points a draw points a loss points. Write a program that meets the following requirements:
allows the number of matches played to be input and stored, with a maximum of matches
validates the number of matches played
allows the names of the football clubs to be input and stored
allows the number of matches won, drawn and lost to be input and stored for each team
validates the number of matches won, drawn or lost against the number of matches played
asks the user to reenter the number of matches won, drawn or lost if the total does not match the number of matches played
calculates and stores the total number of points for each club
finds the football club or clubs with the highest number of points
outputs the name or names of the winning club or clubs, the number of wins and the total number of points awarded.
You must use pseudocode or program code and add comments to explain how your code works. All inputs and outputs must contain suitable messages.
QUESTION
The onedimensional D array Clubs is used to store the names of football clubs
in a local sports league.
The twodimensional D array Statistics is used to store, for each football club, the
number of: matches won matches drawn matches lost.
The D array Points is used to store the total number of points each football club has
been awarded.
The position of any football club's data is the same in all three arrays. For example, the
data in index of Statistics and index of Points belongs to the football club in index
of Clubs
The variable Matches stores the number of matches played by each team.
Each team plays the same number of matches.
Points are awarded for: a win points a draw points a loss points.
Write a program that meets the following requirements:
allows the number of matches played to be input and stored, with a maximum of
matches
validates the number of matches played
allows the names of the football clubs to be input and stored
allows the number of matches won, drawn and lost to be input and stored for each
team
validates the number of matches won, drawn or lost against the number of matches
played
asks the user to reenter the number of matches won, drawn or lost if the total does
not match the number of matches played
calculates and stores the total number of points for each club
finds the football club or clubs with the highest number of points
outputs the name or names of the winning club or clubs, the number of wins and the
total number of points awarded.
You must use pseudocode or program code and add comments to explain how your
code works. All inputs and outputs must contain suitable messages. write in to pseudocode algorithm and Python code.
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
