Title: Oct 1812:12 PM (1 of 22) - Bristol Community Collegeh2>Math Facts var for (i =1; i

22
Today Today Title: Oct 1812:12 PM (1 of 22)

Transcript of Title: Oct 1812:12 PM (1 of 22) - Bristol Community Collegeh2>Math Facts var for (i =1; i

Today

Today

Title: Oct 18­12:12 PM (1 of 22)

Can be written as <br> or <br /> which was created when XHTML was developed.

Title: Oct 18­12:39 PM (2 of 22)

Title: Oct 18­12:40 PM (3 of 22)

Title: Oct 18­12:49 PM (4 of 22)

Concatenated together

Title: Oct 18­12:51 PM (5 of 22)

With the test at the end, the loop will always be done once.

Title: Oct 18­12:52 PM (6 of 22)

Title: Oct 18­12:54 PM (7 of 22)

innerouter

Title: Oct 18­12:56 PM (8 of 22)

Title: Oct 18­1:00 PM (9 of 22)

Title: Oct 18­1:00 PM (10 of 22)

Title: Oct 18­1:06 PM (11 of 22)

Title: Oct 18­1:10 PM (12 of 22)

Title: Oct 18­1:15 PM (13 of 22)

Title: Oct 18­1:17 PM (14 of 22)

Title: Oct 18­1:19 PM (15 of 22)

Title: Oct 18­1:19 PM (16 of 22)

If theRanNum is not equal to myGuess you will do the loop again and take in anotherguess.  If they are equal you will drop out.Note that != means not equal.

Random number between 1 and 5

Title: Oct 18­1:21 PM (17 of 22)

There are three versions of theguess game.The first version allows only oneguess.The second version allows onegame with guessing until the userguesses correctly ­ which involvesa loop.The third version allows the userto play again which involves twoloops

Title: Oct 18­1:23 PM (18 of 22)

Title: Oct 18­1:23 PM (19 of 22)

Title: Oct 18­1:27 PM (20 of 22)

Title: Oct 18­1:29 PM (21 of 22)

Title: Oct 18­1:34 PM (22 of 22)