Please write your name and lab section letter at the top of the page.
Fill in the following method to compute the team's score:
t touchdowns
(worth 6 points apiece; t is much smaller than the fans would like),
gotten p "points after" (worth 1 point apiece), and successfully scored on f
field goals (worth 3 points apiece). In football, a team can score
a "point after" only after a touchdown.
public int score(int t, int p, int f) {
if ( /* your answer on paper for what goes here */ )
Transcript.println("You can't have that many points after");
return /* your answer on paper for what goes here */ ;
}
double average(int g1, int g2, int g3, int g4, int g5) {
return /* your answer on paper for what goes here */ ;
}