during the first half hour once with three...
TRANSCRIPT
During the first half hourstudents wrote this program.I asked them to write it oncewith a compound IF andonce with three IFs.
Title: Oct 1710:52 AM (1 of 16)
Title: Oct 1712:59 PM (2 of 16)
If you remove the parenthesis you would have ANDs resolvedbefore ORs. That means major of CI and option of PG wouldbe grouped and option of WD stands alone.
Title: Oct 171:02 PM (3 of 16)
Title: Oct 171:05 PM (4 of 16)
Title: Oct 171:09 PM (5 of 16)
Programs must have the ability to handle:
Title: Oct 171:14 PM (6 of 16)
Title: Oct 171:21 PM (7 of 16)
Title: Oct 171:22 PM (8 of 16)
Title: Oct 171:26 PM (9 of 16)
Title: Oct 171:26 PM (10 of 16)
Title: Oct 171:31 PM (11 of 16)
Title: Oct 171:32 PM (12 of 16)
Title: Oct 171:32 PM (13 of 16)
Title: Oct 171:36 PM (14 of 16)
Title: Oct 171:46 PM (15 of 16)
Extra credit if you add code to tell who won.
Title: Oct 178:43 PM (16 of 16)