A volcanology research group uses an automated system to log seismic activity. To analyze local activity, they need to calculate the cumulative energy released (in Megajoules, MJ) recorded by a specific sensor, from database logs stored in a table named tbl_SeismicEvents.
Construct a flowchart to represent an algorithm that calculates and outputs the total energy recorded for a single sensor.
The unique Sensor ID of interest is provided as an input at the beginning of the algorithm.