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

Fetching Requirements Out of the Talk

Reading: Read content other than video.

In the realm of software development, customer interactions provide invaluable insights driving program creation. Consider a dialogue between a customer and a shopkeeper:

Customer: What are you selling?
Shopkeeper: Shawarma.
Shopkeeper: How much quantity do you want?
Customer: 2.
Customer: What is the price?
Shopkeeper: Rs 120.
Shopkeeper: Do you need a receipt?
Customer: Yes.

From this exchange, a system analyst discerns crucial variables: productName (shawarma),
quantity (2),
price (Rs 120), 
total.
Utilizing this data, the analyst formulates a pseudocode:

  1. Set productName = “Shawarma”.
  2. Prompt user for quantity.
  3. Set pricePerUnit = Rs 120.
  4. Calculate total = quantity * pricePerUnit.
  5.  print invoice with productName, quantity, pricePerUnit, and total.

Converting pseudocode to program code, the analyst crafts an efficient system that generates accurate invoices based on customer interactions. Thus, customer-business dialogue fuels the development of programs tailored to user needs.

 

Press the “Mark as Complete” button to finish the lecture.

You cannot copy content of this page