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

Sample Question 2

Solve the question given below.

 
Q 2: Write a Pseudocode for an ice cream selling van which inputs flavorname, required scoops and produce output as bill. Flavors are vanilla, chocolate, tutti-fruity. Per scoop price is 45 Rs.

Apply the code in the pseudocode editor given below.

Instructions:

  • Press the Maximize button to change it to full screen.
  • Delete sample code file from right side
  • Create new file with name of Qno1 and start writing Pseudocode 
  • Construct all the questions given in the interactive book.
  • “<-” use it to put arrows in for the assignment.
  • There are three areas: “files”, “editor”, “Console”

Answer:

DECLARE FLAVORNAME: STRING
DECLARE SCOOPS: INTEGER
CONSTANT PRICE: INTEGER ← 45
DECLARE TOTAL: INTEGER
OUTPUT “ENTER FLAVOUR NAME:”
INPUT FLAVOURNAME
OUTPUT “ENTER SCOOPS REQUIRED:”
INPUT SCOOPS
TOTAL ← SCOOPS* PRICE
OUTPUT “”
OUTPUT “=======INVOICE=======”
OUTPUT “FLAVOUR NAME:”, FLAVORNAME
OUTPUT “SCOOPS:”,SCOOPS
OUTPUT “PER SCOOP PRICE:”,PRICE
OUTPUT “BILL:”,TOTAL
OUTPUT “===================”

Create same python code here :

 

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

You cannot copy content of this page