Course Content
Paper 2 – Problem Solving Approach -Practical
0/102
Past Paper-2 May/June 2025
Past Paper-1 May/June 2025
Download Files
0/1
Olevel : Computer Science 2210 / IGCSE 0478 : Recorded

A hospital wants to create a program that can store and process the medical data of 100 infants.
You are required to write pseudocode to complete the task using the following specifications:

  • InfantID should be stored in a one-dimensional array of size 100.

  • Temperature and Pulse for each infant should be stored in a two-dimensional array of size 100 × 2.

    • Column 1 = Temperature

    • Column 2 = Pulse

  • Status of each infant should be stored in a one-dimensional array of size 100.

    • Status will be either “Normal” or “Critical”.

The program must check each infant’s Temperature and Pulse and assign the correct status using the following rules:

  • If Temperature is between 85 and 98 (inclusive)
    AND
    Pulse is between 90 and 120 (inclusive),
    then status is “Normal”

  • Otherwise, status is “Critical”

Write pseudocode to:

  1. Input the InfantID, Temperature, and Pulse for all 100 infants.

  2. Check each infant’s Temperature and Pulse based on the conditions above.

  3. Store the correct Status (“Normal” or “Critical”) in the Status array.

  4. Output the InfantID and the corresponding Status for all infants.

You cannot copy content of this page