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

 

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

Write a method that returns the total number of cats, dogs, and fish in the house. The number of each type of animal will be passed in through a parameter with the appropriate name. The number of each type of animal will be non-negative.


awakenSL1(0, 0, 0) → 0
awakenSL1(1, 1, 1) → 3
awakenSL1(5, 3, 2) → 10

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

public int awakenSL1(int cats, int dogs, int fish) { }

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: 250

Copyright Nick Parlante 2017 - privacy