def item_cost_entry() -> float:
    """Return the sum of all user entries."""
    print('\nENTER ITEMS (ENTER 0 TO END)')
    subtotal: float = 0.0
    while True:
        cost: float = float(input('Cost of item: '))
        if cost == 0:
            break
        else:
            subtotal += cost
    return subtotal