def main(): start = get_float("Enter the starting account balance: $", limit=(1,9e9)) int_rate = get_float("Enter the interest rate (from 1-100): ", limit=(1,101)) months = get_int("Enter the number of months: ", limit=(1,121)) int_rate /= 100 balance_display_loop(start, int_rate, months)
def get_user_plu(self): return get_int("Enter item PLU (Ctrl+C to quit): ", \ limit=(0, self.max_plu))