Exercise 6 - Code generation (C) – Solution

This is the solution for exercise 6.

The statechart