getting price for snack through prompt