Moved calculate_revenue into main(), passing count_melons_sold().