At a wind farm, the hourly energy output of various turbines is logged in a database table named tbl_TurbineOutput. Each record in this table contains the turbine's unique identifier (TurbineID) and the energy generated during that hour (EnergyMWh, in megawatt-hours).
Construct a flowchart to show an algorithm that calculates and outputs the total energy generated by a specific wind turbine.
The target turbine's ID is provided as an input at the start.