You are building a simple event handling system where different event codes (0 to 4) trigger different actions.
Each event type corresponds to a specific function:
You must:
Example-1
Input: 1 Output: Timer Expired
Example-2
Input: 3 Output: Power On
Example-3
Input: 5 Output: Unhandled Event
Test Cases
Test Results
Input
0
Expected Output
Button Pressed