Practice 1
You want a page showing a price after a percentage discount. Without asking an assistant, write a one-paragraph brief and five worked examples.
Compare with a sample answer
Model brief: one file, discount.html, inline HTML, CSS and JavaScript, no libraries, no network, nothing stored. Input: a price in pounds, two decimals at most, and a whole discount from 0 to 100 per cent. Output: discount and new price to the penny, halves up. Refuse bad input with a message. Model examples: 80.00 at 25% gives 60.00. 19.99 at 15%: discount 2.9985 rounds to 3.00, price 16.99. 0.99 at 50%: 0.495 rounds up to 0.50, price 0.49. 10.00 at 100%: 0.00. 10.00 at 101%: refused. Yours will differ; check it fixes rounding and refusals.
Compare your own work with the supplied worked answer and explain differences. This practice is not automatically graded.