title: feb 1210:51 am (1 of 13) did in...

Post on 06-Jul-2020

0 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Reading for chapter 1 if you do not have the book.

Did in class.

Title: Feb 12­10:51 AM (1 of 13)

Title: Feb 12­11:04 AM (2 of 13)

Title: Feb 12­11:15 AM (3 of 13)

Answer for second one. Istrongly suggest everyone trythese on your own.

Title: Feb 12­11:37 AM (4 of 13)

Title: Feb 12­11:54 AM (5 of 13)

The if shows the conditon.  If the condition is true you will execute the code between the if and the else.  If the condition is false you go to the else and execute the code between the else and the end if. The line ct=ct+1 is outside the if and will be executed after the if and then the end do will send you back to the do while to test again.

Title: Feb 12­11:56 AM (6 of 13)

In this example do whilestarts the loop and end doends the loop

Title: Feb 12­11:58 AM (7 of 13)

Looking at set, check and change for the loop in the first problem.

Title: Feb 12­12:00 PM (8 of 13)

Title: Feb 12­12:08 PM (9 of 13)

Looking at the assignment

Title: Feb 12­12:10 PM (10 of 13)

Processing the records in the file.

Title: Feb 12­12:11 PM (11 of 13)

Title: Feb 12­12:11 PM (12 of 13)

Title: Feb 12­12:13 PM (13 of 13)

top related