Hi, I'm new here and I need some help with programming in Fortran 95. This is what I need to do but im not sure how to do it
Write an application that tracks scoring statistics for a basketball team of 15 players. The team plays a total of 10 games. The application must read the basketball statistics from a file and perform the following (refer to table on next page).
• Display each player’s points for each game
• Display each player's average points per game
• Display the team's total points per game
• Display the team's average points per game
Use a two dimensional array (GameStats, 15 x 10) to store the basketball statistics. The player number and game number should be used as indexes into the array (i.e., both indexes start at 1).
The player statistics are stored in a file named “BballStats.txt”. The format of each line in the file is as follows.
<Player Number> <Game Number> <Points Scored>
The range of each field is defined below.
PlayerNumber: 1 – 15
GameNumber: 1 – 10
PointsScored: 0 - 100
Rewrite the application described in Project 3 by using a module, BBallStatsModule, that contains two subroutines. The first subroutine will calculate the total scores for all of the games. The second subroutine will calculate the average points scored for all of the players. The module must be in a separate file. Each subroutine is described below
• calculateTotalPoints(gameStats, totalPointsarr, numRows, numCols)
o gameStats: a two-dimensional array intent IN
o totalPointsArr: - a one-dimensional array with intent INOUT
o numRows: - an integer, representing the number of players in the gameStats array, intent IN
o numCols: - an integer, representing the number of games in the gameStats and totalPointsArr array, intent IN
• calculateAvgPoints(gameStats, avgPointsArr, numRows, numCols)
o gameStats: a two-dimensional array intent IN
o avgPointsArr - a one-dimensional array with intent INOUT
o numRows: - an integer, representing the number of players in the gameStats and avgPointsArr array, intent IN
o numCols: - an integer, representing the number of games in the gameStats array, intent IN
I have some of the program written but i dont think its correct so if anyone could help me out that would be great!
Write an application that tracks scoring statistics for a basketball team of 15 players. The team plays a total of 10 games. The application must read the basketball statistics from a file and perform the following (refer to table on next page).
• Display each player’s points for each game
• Display each player's average points per game
• Display the team's total points per game
• Display the team's average points per game
Use a two dimensional array (GameStats, 15 x 10) to store the basketball statistics. The player number and game number should be used as indexes into the array (i.e., both indexes start at 1).
The player statistics are stored in a file named “BballStats.txt”. The format of each line in the file is as follows.
<Player Number> <Game Number> <Points Scored>
The range of each field is defined below.
PlayerNumber: 1 – 15
GameNumber: 1 – 10
PointsScored: 0 - 100
Rewrite the application described in Project 3 by using a module, BBallStatsModule, that contains two subroutines. The first subroutine will calculate the total scores for all of the games. The second subroutine will calculate the average points scored for all of the players. The module must be in a separate file. Each subroutine is described below
• calculateTotalPoints(gameStats, totalPointsarr, numRows, numCols)
o gameStats: a two-dimensional array intent IN
o totalPointsArr: - a one-dimensional array with intent INOUT
o numRows: - an integer, representing the number of players in the gameStats array, intent IN
o numCols: - an integer, representing the number of games in the gameStats and totalPointsArr array, intent IN
• calculateAvgPoints(gameStats, avgPointsArr, numRows, numCols)
o gameStats: a two-dimensional array intent IN
o avgPointsArr - a one-dimensional array with intent INOUT
o numRows: - an integer, representing the number of players in the gameStats and avgPointsArr array, intent IN
o numCols: - an integer, representing the number of games in the gameStats array, intent IN
I have some of the program written but i dont think its correct so if anyone could help me out that would be great!