int main(){

	int number=populate_movie_catalog();
	printf("There are %d movies\n",number);
	printf("List of Movies:\n");
	print_catalog(number);
	printf("Average Ticket Price: $ %0.2f\n",average_ticket_price(number));
    	printf("Highest Grossing Movie: %s\n",movie_catalog[find_highest_grossing_movie(number)].title);
	sort(number);
	printf("After sorting:");
	print_catalog(number);
	return 0;
}
int main(void) {
	// create movie_catalog array
	int number_of_movies = populate_movie_catalog();
	sort(number_of_movies);

	// show the catalog
	print_catalog(number_of_movies);

	// show the average ticket price
	float the_average_ticket_price = average_ticket_price(number_of_movies);
	printf("Average ticket price: $%f\n", the_average_ticket_price);

	// show the highest grossing movie
	int highest_grossing_movie = find_highest_grossing_movie(number_of_movies);
	printf("Highest grossing movie: \"%s\"\n\n", movie_catalog[highest_grossing_movie].title);

	// good run
	getchar();
	return 0;
}