'''
Created on Oct 30, 2011

@author: your name here
'''
import FileUtilitiesProvided       # for working with files

# useful constants
MAX_RANK = 501
START_YEAR = 1981
END_YEAR = 2010


def get_rank (name, year):
    '''
    Given a name and a year, returns name's rank for that year
    Note, if name does not appear, return lowest possible rank
    '''
    # TODO: complete this function
    return MAX_RANK # lowest possible rank


def get_all_ranks (name, start, end):
    '''
    Given a name and a range of years (start year to end year), 
      returns list of name's rank for all those years
    '''    
    # TODO: complete this function
    return []


def plot_bar_chart(name, start, end):
    ranks = get_all_ranks(name, start, end)
    FileUtilitiesProvided.createBarChart(name, ranks, start, end, MAX_RANK)


# the main function
# replace values below with your own for testing/curiousity purposes
plot_bar_chart("Mia", START_YEAR, END_YEAR)
