Beispiel #1
0
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """

    # your code

    options = [
        'show table', 'add', 'remove', 'update', 'get_lowest_price_item_id',
        'get_items_sold_between'
    ]
    dict_menu = {
        '1': show_table_wrapper,
        '2': add_wrapper,
        '3': remove_wrapper,
        '4': update_wrapper,
        '5': get_lowest_price_item_id_wrapper,
        '6': get_items_sold_between_wrapper
    }
    common.sub_menu(dict_menu, options, "Sales menu")
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """
    options = [
        'show table', 'add', 'remove', 'update', 'get available items',
        'get_average_durability_by_manufacturers'
    ]
    dict_menu = {
        '1': show_table_wrapper,
        '2': add_wrapper,
        '3': remove_wrapper,
        '4': update_wrapper,
        '5': get_available_items_wrapper,
        '6': get_average_durability_by_manufacturers_wrapper
    }
    common.sub_menu(dict_menu, options, "Inventory menu")
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """
    options = ['get last buyer name',
                'get last buyer id',
                'get the name of the top buyer with amount of money spent',
                'get the id of the top buyer with amount of money spent',
                'get the name of the most frequent buyer',
                'get the id of the most frequent buyer']
    dict_menu = {'1': get_the_last_buyer_name_wrapper,
                '2': get_the_last_buyer_id_wrapper,
                '3': get_the_buyer_name_spent_most_and_the_money_spent_wrapper,
                '4': get_the_buyer_id_spent_most_and_the_money_spent_wrapper,
                '5': get_the_most_frequent_buyers_names_wrapper,
                '6': get_the_most_frequent_buyers_ids_wrapper}
    common.sub_menu(dict_menu, options, "Store menu")
Beispiel #4
0
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """

    options = [
        'show table', 'add', 'remove', 'update', 'get longest name id',
        'get subscribed emails'
    ]
    dict_menu = {
        '1': show_table_wrapper,
        '2': add_wrapper,
        '3': remove_wrapper,
        '4': update_wrapper,
        '5': get_longest_name_id_wrapper,
        '6': get_subscribed_emails_wrapper
    }
    common.sub_menu(dict_menu, options, "Store menu")
Beispiel #5
0
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """

    # your code
    options = [
        'show table', 'add', 'remove', 'update', 'get oldest person',
        'get persons closest to average'
    ]
    dict_menu = {
        '1': show_table_wrapper,
        '2': add_wrapper,
        '3': remove_wrapper,
        '4': update_wrapper,
        '5': get_oldest_person_wrapper,
        '6': get_persons_closest_to_average_wrapper
    }
    common.sub_menu(dict_menu, options, "HR menu")
def start_module():
    """
    Starts this module and displays its menu.
     * User can access default special features from here.
     * User can go back to main menu from here.

    Returns:
        None
    """

    options = [
        'Show table', 'Add a new record', 'Remove record',
        'Update single record', 'Which year has the highest profit?',
        'What is the average (per item) profit in a given year?'
    ]
    dict_menu = {
        '1': show_table_wrapper,
        '2': add_wrapper,
        '3': remove_wrapper,
        '4': update_wrapper,
        '5': which_year_max_wrapper,
        '6': avg_amount_wrapper
    }
    common.sub_menu(dict_menu, options, "Accounting menu")