Activities

Activity 1: Grocery Store Discount Calculator

Scenario: A local grocery store offers a discount based on the total amount spent.

  • Customers receive a 10% discount if they spend $50 or more.

  • Customers receive a 20% discount if they spend $100 or more.

  • If they spend less than $50, no discount is applied.

Complete the Input and Output sections in the chart below:

Input

Process

Output

1. Check if the total amount is less than $50.

No discount applied, final price is the same.

2. If amount is $50 or more but less than $100, apply a 10% discount.

3. If amount is $100 or more, apply a 20% discount.

4. Display the final price after applying any discount.

Activity 2: Student Grade Categoriser

Scenario: A school wants a program that takes a student’s percentage score and classifies their grade based on the following scale:

  • 90% and above: A

  • 80% - 89%: B

  • 70% - 79%: C

  • 50% - 69%: D

  • Below 50%: F

Complete the IPO chart below:

Input

Process

Output

Last updated