during the first half hour once with three...

Post on 05-Oct-2020

0 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

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 17­10:52 AM (1 of 16)

Title: Oct 17­12: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 17­1:02 PM (3 of 16)

Title: Oct 17­1:05 PM (4 of 16)

Title: Oct 17­1:09 PM (5 of 16)

Programs must have the ability to handle:

Title: Oct 17­1:14 PM (6 of 16)

Title: Oct 17­1:21 PM (7 of 16)

Title: Oct 17­1:22 PM (8 of 16)

Title: Oct 17­1:26 PM (9 of 16)

Title: Oct 17­1:26 PM (10 of 16)

Title: Oct 17­1:31 PM (11 of 16)

Title: Oct 17­1:32 PM (12 of 16)

Title: Oct 17­1:32 PM (13 of 16)

Title: Oct 17­1:36 PM (14 of 16)

Title: Oct 17­1:46 PM (15 of 16)

Extra credit if you add code to tell who won.

Title: Oct 17­8:43 PM (16 of 16)

top related