1 / 12

CN2180 Chapter 6

CN2180 Chapter 6. Kemtis Kunanuraksapong MSIS with Distinction, A+. Agenda. Looping Logic Exercise Assignment The Guess a Number Game Quiz. Looping Logic Statements. For… Next For…Each… Next Do…while Do…Until While…Wend. For…Next Statement.

denzel
Download Presentation

CN2180 Chapter 6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CN2180Chapter 6 KemtisKunanuraksapong MSIS with Distinction, A+

  2. Agenda • Looping Logic • Exercise • Assignment • The Guess a Number Game • Quiz

  3. Looping Logic Statements • For… Next • For…Each… Next • Do…while • Do…Until • While…Wend

  4. For…Next Statement For counter = begin To end [Step StepValue] Statements Next See code on Page 152 Exit For See code on Page 153

  5. For Each…Next Statement For Each element In collection Statements Next See code on Page 154

  6. Exercise 1 • Write a script using for…next statement • Set the title name constant to “For…next example” • Collect Input (place) from user. Use for… next statement to ask 6 places. • Use massage box to show the list of answers

  7. Do…While Do While condition Statements Loop

  8. Do…While (Cont.) Do Statements Loop While condition See code on Page 156 and 167 Endless loop -- Exit Do

  9. Do…Until Do Until condition Statements Loop See code on Page 159

  10. While…Wend While condition Statements Wend See code on Page 160

  11. Guess a Number Game See Page 161

  12. Assignment • See Page 173 • Do Challenge 2 first then • Challenge 1

More Related