write programs that include sequential, selection, and repeating events