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

 

jebbert@volusia.k12.fl.us > mar5_2020_APP1SLHL_gotIt
prev  |  next  |  chance

Write a method that accepts three integer input parameters. The input parameters represent two numbers, and someone attempting to either add or multiply those two numbers. Return "big brain!" if the sum OR product of the two numbers comes out to the answer 'ans'. Otherwise return "wrong". Look at the test data for examples.


mar5_2020_APP1SLHL_gotIt(4, 5, 9) → "big brain!"
mar5_2020_APP1SLHL_gotIt(3, 7, 21) → "big brain!"
mar5_2020_APP1SLHL_gotIt(8, 2, 10) → "big brain!"

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

public String mar5_2020_APP1SLHL_gotIt(int a, int b, int ans) { }

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

Difficulty: 290

Copyright Nick Parlante 2017 - privacy