import sys from Movie import * from Theater import * from Screen import * from Show import * from datetime import datetime # Given a director name as input this function opens and reads # data from files movies.dat, theaters.dat, screens.dat, and shows.dat. # It then creates the data structure as shown in the figure and returns # two dictionaries: movies (key: mid and value: movie object for mid) and # theaters (key: tid and value: theater object). def load_data(dname): movies = {} theaters = {} pass return movies, theaters # returns the length of the longest theater name # useful in formatting output def longest_theater_name_len(theaters): pass # returns the length of the longest screen name # useful in formatting output def longest_screen_name_len(theaters): pass # finds statistics for movie mid and returns number of matinee visitors # and number of evening visitors for the movie. def process_movie_statistics(movies, mid): pass # finds show listings for a movie with mid in a given city # the result should be sorted by date and time of show. # the result should be a list of tuples - see sample output for what should # go into the tuple. def process_show_listings(shows, mid, city): pass def menu(): print("\nMenu Options\n") print(" Theater Cities (c)") print(" Movie IDs (d)") print(" Theater IDs (h)") print(" Movies Screened in Theater (t tid)") print(" Movie Statistics (m mid)") print(" Show Listings for Movie in City (s mid city)") print(" Quit (q)\n") return input("Enter your option: ").strip() def main(): movies, theaters = load_data(sys.argv[1]) while True: option = menu() pass main()