13
Reading for chapter 1 if you do not have the book. Did in class. Title: Feb 1210:51 AM (1 of 13)

Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Did in class.

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

Page 2: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Page 3: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Page 4: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

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

Page 5: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Page 6: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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)

Page 7: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

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

Page 8: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

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

Page 9: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Page 10: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

Looking at the assignment

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

Page 11: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

Processing the records in the file.

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

Page 12: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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

Page 13: Title: Feb 1210:51 AM (1 of 13) Did in class.cisweb.bristolcc.edu/~pgrocer/audio_smartboardS19/CIS120/...Ifyou bought the optional text: read chapter 1 (you might note that at Amazon

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