title: oct 1710:52 am (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardf17/cis120/... ·...
TRANSCRIPT
The first half hour was spentwith students writing thisprogram. I asked people totry it with one IF and three IFs.
Title: Oct 1710:52 AM (1 of 20)
Title: Oct 1711:25 AM (2 of 20)
Title: Oct 1711:29 AM (3 of 20)
Without the parenthesis you get the ANDs beforethe ORs.
Title: Oct 1711:32 AM (4 of 20)
This shows the code using one IF. Again note theparenthesis needed because ANDs are resolvedbefore ORs and I want major of CI and option ofeither PG or WD.
Title: Oct 178:19 PM (5 of 20)
Another version with CI and either PG or > 3.5
Title: Oct 1711:38 AM (6 of 20)
Under tools you can click on Web Developer and console to see some hints about syntax errors.
Title: Oct 1711:39 AM (7 of 20)
To be a programming language you must support sequence, decisions and repetition (loops).
Title: Oct 1711:42 AM (8 of 20)
Title: Oct 1711:46 AM (9 of 20)
Title: Oct 1711:51 AM (10 of 20)
Title: Oct 1711:55 AM (11 of 20)
Title: Oct 1711:59 AM (12 of 20)
Title: Oct 1712:03 PM (13 of 20)
Title: Oct 1712:04 PM (14 of 20)
Title: Oct 1712:05 PM (15 of 20)
Title: Oct 1712:07 PM (16 of 20)
Title: Oct 1712:07 PM (17 of 20)
Title: Oct 1712:12 PM (18 of 20)
Title: Oct 178:26 PM (19 of 20)
Extra credit if you add code to tell whowon.
Title: Oct 178:31 PM (20 of 20)