Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... ·...

20
The first half hour was spent with students writing this program. I asked people to try it with one IF and three IFs. Title: Oct 1710:52 AM (1 of 20)

Transcript of Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... ·...

Page 1: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

The first half hour was spentwith students writing thisprogram. I asked people totry it with one IF and three IFs.

Title: Oct 17­10:52 AM (1 of 20)

Page 2: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:25 AM (2 of 20)

Page 3: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:29 AM (3 of 20)

Page 4: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Without the parenthesis you get the ANDs beforethe ORs.  

Title: Oct 17­11:32 AM (4 of 20)

Page 5: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

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 17­8:19 PM (5 of 20)

Page 6: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Another version with CI and either PG or > 3.5

Title: Oct 17­11:38 AM (6 of 20)

Page 7: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Under tools you can click on Web Developer and console to see some hints about syntax errors.

Title: Oct 17­11:39 AM (7 of 20)

Page 8: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

To be a programming language you must support sequence, decisions and repetition (loops).

Title: Oct 17­11:42 AM (8 of 20)

Page 9: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:46 AM (9 of 20)

Page 10: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:51 AM (10 of 20)

Page 11: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:55 AM (11 of 20)

Page 12: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­11:59 AM (12 of 20)

Page 13: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:03 PM (13 of 20)

Page 14: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:04 PM (14 of 20)

Page 15: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:05 PM (15 of 20)

Page 16: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:07 PM (16 of 20)

Page 17: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:07 PM (17 of 20)

Page 18: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­12:12 PM (18 of 20)

Page 19: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Title: Oct 17­8:26 PM (19 of 20)

Page 20: Title: Oct 1710:52 AM (1 of 20)cisweb.bristolcc.edu/~pgrocer/audio_smartboardF17/CIS120/... · 2017. 10. 18. · The first half hour was spent with students writing this program.

Extra credit if you add code to tell whowon.

Title: Oct 17­8:31 PM (20 of 20)