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

 

andersoniii.edwin@cusd80.com week9 > paintMyWalls
prev  |  next  |  chance

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)

public int paintMyWalls(int wid, int hei, double factor){ }

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

Copyright Nick Parlante 2017 - privacy