Currently Empty: $0.00
Introduction To Syllabus
0/3
Relation of Real Life and Programming
0/7
Stages of Programming
0/14
Dealing with Constructs
0/24
Question Set 3
0/3
Concept of Validations
0/6
Question Set 4
0/2
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:
- Set productName = “Shawarma”.
- Prompt user for quantity.
- Set pricePerUnit = Rs 120.
- Calculate total = quantity * pricePerUnit.
- 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.