How does this programs control flow allows it to respond to the…

Question Answered step-by-step How does this programs control flow allows it to respond to the… How does this programs control flow allows it to respond to the events? The progrm –  #include “splashkit.h” #define STEPSIZE 3 int main(){double x;double y;double radius; open_window(“Refine Shape Shifter”, 800,600); x = screen_width() / 2; //400y = screen_height() / 2; //300 radius = 100; while(not quit_requested()){process_events(); //capture keyboard events if(key_down(LEFT_KEY)){x = x – STEPSIZE;} if(key_down(RIGHT_KEY)){x = x + STEPSIZE;} if(key_down(UP_KEY)){y = y – STEPSIZE;} if(key_down(DOWN_KEY)){y = y + STEPSIZE;} // revert changes if exceeding boundary if (x – radius < 0){x = x + STEPSIZE;} if (x + radius > screen_width()){x = x – STEPSIZE;} if (y – radius < 0){y = y + STEPSIZE;} if (y + radius > screen_height()){y = y – STEPSIZE;} clear_screen(COLOR_WHITE);fill_circle(COLOR_GREEN, x, y, radius);refresh_screen(60);} return 0;} Computer Science Engineering & Technology C++ Programming SIT 102 Share QuestionEmailCopy link Comments (0)