Someone
public text v1 · immutable// If-else for purchseCostLevel
if (totalPurchaseCost == 0) {
if (total <= 25)
purchaseCostLevel = Low;
else if (total <= 75)
purchaseCostLevel = Medium;
else if (total <= 100)
purchaseCostLevel = High;
else if (total >= 120)
purchaseCostLevel = Very High;
}