Estimating room paint cost

# Room specification room_length_m = 8 room_width_m = 4 room_height_m = 2.2 doors = 2 door_width_m = 1.9 door_height_m = 0.82 windows_area_width_m = 2.0 windows_area_height_m = 1.3 gallon_to_litres = 3.78541178 f2_to_m2 = 0.09290304 # Dummies: "You can expect 1 gallon of paint to cover about 350 square feet" litres_per_m2 = gallon_to_litres / (350 * f2_to_m2) # How many litres are required? walls_area = 2*(room_width_m + room_length_m)*room_height_m doors_area = doors * door_width_m * door_height_m windows_area = windows_area_width_m * windows_area_height_m walls_area -= (doors_area + windows_area) ceiling_area = room_width_m * room_length_m paint_required_walls_l = walls_area * litres_per_m2 paint_required_ceiling_l = ceiling_area * litres_per_m2 print(paint_required_walls_l) # 5.481l print(paint_required_ceiling_l) # 3.725l walls_paint = 'Woodie\'s Vinyl Soft Sheen Glazed Marble' walls_paint_big_price_euro = 27.00 # 5l walls_paint_small_price_euro = 15.00 # 2.5l, couldn't find smaller walls_paint_cost = walls_paint_big_price_euro + walls_paint_small_price_euro ceiling_paint = 'Woodie\'s Vinyl Soft Sheen Pure Brilliant White' ceiling_paint_cost = ceiling_paint_small_price_euro = 16.00 # 5l total_paint_cost = walls_paint_cost + ceiling_paint_cost print('Total cost of painting a %dm x %dm x %.1fm room: %.2f€' % (room_length_m, room_width_m, room_height_m, total_paint_cost) ) # Total cost of painting a 8m x 4m x 2.2m room: 58.00€ print("Source of paint: Woodie's, https://www.woodies.ie (13.05.2019)")