$\require{cancel}$
Given the number of ice cream cones we expect to sell and the type of day, compute the number of gallons of ice cream needed if one gallon of ice cream will make 24 cones.
20 cones on a normal day base gallons needed = roundup (20/24)1
multiplier = 1 (normal day) gallons = 1 * 1 = 1 25 cones on a normal day base gallons needed = roundup (25/24)2
multiplier = 1 (normal day) gallons = 2 * 1 = 2 259 cones on a normal day base gallons needed = roundup (259/24)11
multiplier = 1 (normal day) gallons = 11 * 1 = 11 259 cones on a busy day base gallons needed = roundup (259/24)11
multiplier = 2 (busy day) gallons = 11 * 2 = 22 259 cones on a holiday day base gallons needed = roundup (259/24)11
multiplier = 4 (holiday day) gallons = 11 * 4 = 44
ask the user for the number of cones ask the user for type of day (normal, busy, holiday) baseGallons = roundup(cones/CONES_PER_GALLON) if typeOfDay == normal multiplier = 1 else if typeOfday == busy multiplier = 2 else multiplier = 4 gallons = baseGallons * multiplier print the number of gallons needed.