|
|
- 1Recall the types of information stored when recording details about daily activities in Ghana
- 2Ask learners: What information do you need to write down when you buy items at Makola Market? List responses on the board (name of item, quantity, price, seller's name). Discuss which answers are numbers and which are words
|
- IDENTIFYING DATA TYPES IN REAL-LIFE SCENARIOS
- 1Display on the Projector three examples: (1) Kofi's age is 15; (2) Abena's height is 1.75 metres; (3) Yaw's first name is 'Yaw'. Ask learners to identify which pieces of information are whole numbers, decimal numbers, and words. Write the terms integer, float, and string on the board and match each to the examples. Clarify: integer is a whole number (like age), float is a number with decimals (like height), string is text (like a name)
- 2Distribute exercise books and ask learners to write three quick examples from their own lives using this format: My [thing] is [value]. Examples: My school is 'Osu Secondary School' (string), My school fees cost GH₵250.50 (float), My form number is 3 (integer). Invite one representative from each group to read their examples aloud and identify which data type they used
- 3Struggling learners: provide a pre-written template with blanks to fill (My age is ___, My address is ___) and ask them to identify whether each answer is a whole number, decimal, or text.
|
- 1Computer/Laptop
- 2Projector
- 3Exercise books
- 4Whiteboard and marker
|
- 1Display on the Computer/Laptop a simple table with four rows (Integer | Float | String | Char) and ask learners to stand if their favourite food price in GH₵ is an integer, sit if it is a float. Repeat for: your house number (integer or string?), the first letter of your surname (char or string?). This reinforces the differences
- 2Ask learners to turn to their partner and teach them one rule they learned today about data types using an example from their street or market
Exercise
- 1Write on the board: 'Ama buys 3 kenkey meals for GH₵2.50 each from a chop bar named Ama's Kitchen.' Ask learners to identify four pieces of data in this sentence and write down the data type for each (3 = integer, 2.50 = float, Ama's Kitchen = string, etc.) in their exercise books.
|
|
|
- 1Recall the four main data types (integer, float, string, char) and identify examples from prior lesson
- 2Display on the projector a simple table with four columns labelled Integer, Float, String, Char. Ask learners to call out one real-world example they remember from yesterday's lesson (e.g., age, price, name, single letter) and point to which column it belongs
|
- CLASSIFYING DATA TYPES IN GHANAIAN MARKET SCENARIOS
- 1Write on the board: Ama sells kelewele at Makola Market. Her notebook shows: item name (kelewele), quantity sold (45), price per piece (GH₵0.75), initial letter of her second name (K). Ask learners to work in pairs and decide which data type each piece of information is — integer, float, string, or char — and write their answers in exercise books. Project the computer screen showing a simple spreadsheet with these column headers so learners can visualise where each data type appears
- 2Call a representative from each pair to write one of their answers on the board (name of data type and reason). Discuss each answer briefly: kelewele is string, 45 is integer, GH₵0.75 is float, K is char. Ask the class to raise hands if they agree with each classification, then correct any misunderstandings by referencing the definitions on the projector
- 3Struggling learners: provide a reference card listing the four data types with one example each already filled in; they match the market scenario to the card.
|
- 1Computer/Laptop with spreadsheet open
- 2Projector
- 3Whiteboard and markers
- 4Exercise books
|
- 1Display a new scenario on the projector: Yakubu's trotro journey — driver's age (52), trotro fare (GH₵2.50), destination (Accra), registration plate starting letter (T). Learners vote by showing fingers 1–4 for the data type of each item, with 1=integer, 2=float, 3=string, 4=char
- 2Ask: Why is it important to know data types when storing information? Learners share one reason with their partner, then invite two volunteers to share their reasoning with the whole class
Exercise
- 1Write down the data type (integer, float, string, or char) for each: (1) Kofi's phone number 0201234567, (2) price of fufu GH₵3.50, (3) Abena's first name, (4) grade letter A. Provide your reasoning for each choice in one sentence in their exercise books.
|