Electronics and Programming Assignment

Hi there,

 

Please find attached file. I have an assignment for a QBasic Programming and one problem regarding switching and timing circuits.