Skip to main content

Assessment 2 — Beat the Shopping Cart

A constrained shopping scenario with thresholds, coupons, exclusions and bundles. Find the best plan without buying extra things just to chase a discount.

Due: 25 September 2026 · Weight: 30%

The brief

Given a shopping cart, several discount rules, and a fixed list of needed items, find the best way to buy them.

You’ll be given (or will construct, if working from a real storefront) a scenario containing several of: a spend threshold, a percentage coupon with exclusions, a bundle offer, a free-shipping cutoff, and a loyalty-points rate. Work out the true cost of at least three possible strategies for getting the needed items, including the “obvious” one a shopper would try first.

The scenario is built so that at least one strategy that looks like a bigger discount is actually a worse outcome once you account for items bought only to satisfy a threshold. Buying something you didn’t need, purely to unlock a bigger advertised discount, should not be counted as “saving money” unless you can show the item had real value to you independent of the coupon.

This assessment applies Week 4’s if-this-then-that rule thinking to a cart you have to solve yourself.

Scenario packet

Your scenario, whether supplied or self-constructed, must be written as a rule sheet before you solve it. It should contain:

If you use a real storefront, cite it. If you invent a scenario, label it hypothetical and make the numbers consistent with each other.

Required model

Compare at least three strategies in the same table or script:

For each strategy, show item subtotal, excluded subtotal, discount applied, shipping or points value if relevant, unwanted add-on cost, and final true cost. A strategy that buys an unwanted item should count the wasted part as cost, even if the checkout total is lower.

What you submit

Either a written strategy comparison (tables are fine) or a small script that computes true cost from the rules. Either format is acceptable; the mark is for the reasoning, not for choosing code over writing. State your final recommended strategy and the true cost it produces.

Include a short note explaining why the losing strategies lose. The goal is not only to name the cheapest cart; it is to show which rule made the advertised bargain stop being a bargain.

What strong work looks like

Strong work makes each rule usable: the reader can see the input, the condition, and the result. It notices ordering questions, such as whether a coupon applies before or after sale-item exclusions. The final recommendation should still make sense if the sale badges are hidden and only your cost table remains.

Common traps

The spec

The brief poses the problem and leaves room for a response. The spec is the fixed part: what a marker checks. Some lines can be checked mechanically; the rest call for judgement.

How it is marked

CriterionWhat markers look forWeight
Correct modelling of every rule in the scenarioWrites each coupon, exclusion, bundle, shipping rule and loyalty rule as a clear if-this-then-that rule, including the order the rules apply.35%
How well the chosen strategy is justifiedCompares at least three possible carts using the same true-cost method, then recommends the cart with the best total result, not the biggest advertised discount.35%
Clarity of the written or coded reasoningShows the working clearly enough that another student could repeat it, using readable tables or code and a short explanation of why the other options lose.30%