The Sports Administration Management must manage each player’s performance and are

therefore required to review the players’ performance every six months. Points are earned as
follows: Three (3) points for each goal scored and two (2) points for a penalty.
The data below represents the performance of one player during the first six months of the year.
Use this data to populate the arrays.
Points 30 10 5 20 25 30
Month Jan Feb Mar Apr May Jun
Q.3.1 Write the pseudocode for an application that will generate a report that will show
the following information:
a. The total number of points the player scored during the first six months of
the year.
b. The average number of points the player scored per month.
c. The month during which the lowest number of points were scored by the
player.
d. The month during which the highest number of points were scored by the
player.
Note: You must use parallel arrays as part of your answer.

1. Declare and initialize the parallel arrays for points and months.

- Declare an array called "points" and initialize it with the given data: [30, 10, 5, 20, 25, 30]
- Declare an array called "months" and initialize it with the given data: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]

2. Calculate and display the total number of points scored by the player.
- Initialize a variable called "totalPoints" to 0.
- Loop through the "points" array and add each element to "totalPoints".
- Display the value of "totalPoints".

3. Calculate and display the average number of points scored per month.
- Initialize a variable called "averagePoints" to 0.
- Divide "totalPoints" by the length of the "points" array and store the result in "averagePoints".
- Display the value of "averagePoints".

4. Find and display the month during which the lowest and highest number of points were scored by the player.
- Initialize variables called "lowestPoints" and "highestPoints" to the first element of the "points" array.
- Initialize variables called "lowestMonth" and "highestMonth" to the first element of the "months" array.
- Loop through the "points" array from the second element.
- If the current element is less than "lowestPoints", update "lowestPoints" to the current element and "lowestMonth" to the corresponding element of the "months" array.
- If the current element is greater than "highestPoints", update "highestPoints" to the current element and "highestMonth" to the corresponding element of the "months" array.
- Display the values of "lowestMonth" and "highestMonth".

5. End the program.

Here is the pseudocode to generate the required report:

1. Declare and initialize the parallel arrays:
- Points array with values [30, 10, 5, 20, 25, 30]
- Months array with values ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]

2. Calculate the total number of points scored by the player:
- Initialize a variable totalPoints to 0
- Iterate through each element in the Points array
- Add the current element to totalPoints

3. Calculate the average number of points scored per month:
- Initialize a variable averagePoints to 0
- Divide the totalPoints by the length of the Points array and assign the result to averagePoints

4. Find the month with the lowest number of points:
- Initialize a variable minPoints to a very large number
- Initialize a variable lowestMonth to an empty string
- Iterate through each element in the Points array
- If the current element is less than minPoints
- Update minPoints to the current element
- Assign the corresponding month from the Months array to lowestMonth

5. Find the month with the highest number of points:
- Initialize a variable maxPoints to 0
- Initialize a variable highestMonth to an empty string
- Iterate through each element in the Points array
- If the current element is greater than maxPoints
- Update maxPoints to the current element
- Assign the corresponding month from the Months array to highestMonth

6. Output the generated report:
- Print "Total number of points scored: " followed by the totalPoints
- Print "Average number of points scored per month: " followed by the averagePoints
- Print "Month with the lowest number of points: " followed by lowestMonth
- Print "Month with the highest number of points: " followed by highestMonth

Note: Replace the print statements with the appropriate output statements based on the programming language you are using.

To generate the desired report using parallel arrays, you can follow the pseudocode below:

1. Initialize the points array with the given data: [30, 10, 5, 20, 25, 30]
2. Initialize the months array with the given data: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]

a. Calculate the total number of points scored:
- Initialize a variable named "totalPoints" and set it to 0.
- Iterate through the points array and add each element to the "totalPoints" variable.
- Print the value of the "totalPoints" variable.

b. Calculate the average number of points scored per month:
- Calculate the total number of points scored (using the method from step a).
- Initialize a variable named "averagePoints" and set it to the total points divided by 6 (the number of months).
- Print the value of the "averagePoints" variable.

c. Find the month with the lowest number of points scored:
- Initialize a variable named "lowestPoints" and set it to the first element of the points array.
- Initialize a variable named "lowestMonth" and set it to the first element of the months array.
- Iterate through the points array starting from the second element:
- If the current element is smaller than the "lowestPoints" variable, update "lowestPoints" with the current element
and update "lowestMonth" with the corresponding month from the months array.
- Print the value of the "lowestMonth" variable.

d. Find the month with the highest number of points scored:
- Initialize a variable named "highestPoints" and set it to the first element of the points array.
- Initialize a variable named "highestMonth" and set it to the first element of the months array.
- Iterate through the points array starting from the second element:
- If the current element is greater than the "highestPoints" variable, update "highestPoints" with the current element
and update "highestMonth" with the corresponding month from the months array.
- Print the value of the "highestMonth" variable.

By following this pseudocode, you should be able to calculate and display the desired information accurately.