about | help | code help+videos | done | prefs |
Write a method that has two integer parameters, mph and hours. The parameter mph tells how many miles per hour you were going and hours tells for how long you were going at that speed. Return how many miles you went in the indicated amount of time. Note that if either mph or hours are negative you should return zero as the result. turkeyRun(-142, 4) → 0 turkeyRun(3, 11) → 33 turkeyRun(1, 8) → 8 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 240
Copyright Nick Parlante 2017 - privacy