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

 

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

Given integers of how many touchdowns and field goals that team A got and integers of how many touchdowns and field goals that team B got, return which team won the game and has more total points by returning "A", "B", or "TIE". A touchdown is worth 6 points and a field goal is worth 3 points.


fund_footballWinner(1, 1, 1, 1) → "TIE"
fund_footballWinner(1, 1, 0, 0) → "A"
fund_footballWinner(0, 0, 1, 1) → "B"

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

public String fund_footballWinner(int touchdownsA, int fieldgoalsA, int touchdownsB, int fieldgoalsB) { }

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