This tutorial explains how to develop dedicated simulators for executing event graph models and activity cycle diagram (ACD) models. An event-graph simulator template and an ACD simulator template are presented in pseudo code form, together with example C# implementations for a simple discrete-event system. A list of the simulation programs in C# codes is provided in a website. A brief description of a general-purpose simulator for executing ACD models is also presented.