Constructs

EasyMediumHard
123456789101112131415161718192021222324252627282930
Question 17
Medium

A local cinema is running a special promotion. The first 15 customers who purchase a premium ticket receive a free box of popcorn.

An automated system needs to control this promotion. A subprogram called waitForTicketSale() pauses program execution until a premium ticket is successfully purchased by a customer.

A call to this subprogram is represented in the flowchart as a process box containing waitForTicketSale().

Draw a flowchart for a program that outputs the message 'Free popcorn' for each of the first 15 qualifying customers, and then stops.

[6]

Constructs Questions

  1. GCSE
  2. /Computer Science
  3. /Constructs