This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import java.util.Scanner; | ||
import java.lang.Math; | ||
|
||
/** | ||
* Print each player's bowling average for a match and the team's average. | ||
* - from ./readme | ||
* "The average is the sum of the game scores divided by the number of | ||
* games." | ||
*/ | ||
public class BowlingCalc { | ||
double MAXSCORE = 300; | ||
double TEAMSIZE = 5; | ||
double GAMEQTY = 3; | ||
public static void main(String[] args) { | ||
String intro = "I will calculate the averages for the bowling team and its" | ||
intro .= "players.\n"; | ||
System.out.printf(intro); | ||
|
||
// | ||
} | ||
|
||
public static double playerAverage(double[] scores) { | ||
// | ||
} | ||
|
||
public static double teamAverage(double[][] scores) { | ||
// | ||
} | ||
} |