* One gallon of paint = $50.00 Note: If the sqFt is not evenly divisible by 100, an additional gallon of paint will be needed (Ex: a 240 sq ft room requires 3 gallons of paint) * Every 100 square feet of room requires 1 gallon of paint and 8 hours of labor (painter will not paint rooms smaller than 100sqft, user must enter 100 or more) Use the following information to calculate the cost of painting a room with a specified square footage- no tax need be applied. It then calculates the cost of painting the room (paintCost + laborCost) and returns this value as a double. * method priceIt: Takes in one integer value named sqFt which represents the square footage of a room.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |