Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
draft of pmethods
Browse files Browse the repository at this point in the history
  • Loading branch information
jzacsh committed Nov 24, 2010
1 parent 221ca00 commit 1ea7024
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions exam/02/BowlingCalc.java
@@ -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) {
//
}
}

0 comments on commit 1ea7024

Please sign in to comment.