1. Event-Driven Programming 2. Event-Driven Programming Most modern computer programs that people use haveGraphical User Interfaces(GUIs). A GUI has icons on the computer…