about | help | code help+videos | done | prefs |
Write the method to determine the number of gallons of paint necessary to paint four walls given the width and height and coverage per gallon. The method paintMyWalls will receive two(integer) dimensions and coverage factor (decimal). The method will return a integer value representing number of gallons of paint.Return answer rounded up to the nearest gallon. Note Need .34 gallons would become 1 gallon. paintMyWalls(10, 10, 250) → 2 paintMyWalls(12, 12, 250) → 3 paintMyWalls(20, 10, 250) → 4 ...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: 100
Copyright Nick Parlante 2017 - privacy