Practice

Flowchart to Pseudocode: Ticket Price

EASYFlowcharts

The flowchart below sets the price of a cinema ticket from the customer's age.

Write the pseudocode for this flowchart.

Sample Test Cases

Test 1: Child
Inputs: 8
Expected: 5
Test 2: Adult
Inputs: 30
Expected: 8