id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com fundamentals > fund_footballScore
prev  |  next  |  chance

Given integers of how many touchdowns and field goals a team got in a football game, return their score. A touchdown is worth 6 points and a field goal is worth 3 points.


fund_footballScore(1, 0) → 6
fund_footballScore(0, 1) → 3
fund_footballScore(1, 1) → 9

...Save, Compile, Run (ctrl-enter)

public int fund_footballScore(int touchdowns, int fieldgoals) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy