Presentation is loading. Please wait.

Presentation is loading. Please wait.

Workshop Title Workshop X – Section Y MCT123 Module Title.

Similar presentations


Presentation on theme: "Workshop Title Workshop X – Section Y MCT123 Module Title."— Presentation transcript:

1

2 Workshop Title Workshop X – Section Y MCT123 Module Title

3 On completing this section and related learning activities, you should be able to:  Do this  This  And this…. Learning Outcomes

4 Comparing for and while test for (counter=1; counter <= 10; ++counter) { /* other statements here */ } for (counter=1; counter <= 10; ++counter) { /* other statements here */ } counter = 1; while (counter <= 10) { /* other statements here */ ++counter; } counter = 1; while (counter <= 10) { /* other statements here */ ++counter; }

5 Counting to 100 for (counter=1; counter <= 100; counter++) { printf(“%d\n”, counter); } for (counter=1; counter <= 100; counter++) { printf(“%d\n”, counter); } The loop counter can be used to produce a list of values that are used in the program.

6 SymbolMeaning, Comma = AND ; Semicolon = OR :- Colon-dash = ONLY IF not not = NOT Basic Symbols Everything in Prolog must end with a full stop. Interpreter waits for the full stop before analyzing the text

7 The ADDIE Model Analysis Analyse learner profile Design Plan the content Development Assemble content assets Implement Put into practice Evaluation Gather feedback

8 Options for Content Existing presentations & lecture materials Existing online resources Use Existing Resources NDLR (Ireland HE Resources)NDLR Merlot (International Resources)Merlot MIT Open Courseware OpenLearn Open University Use Open Resources Write new text and/or audio Source/create new graphics Develop video demos Create interactivity Create New Materials

9 for Loop Exercise (1) Pseudocode??? Problem statement: Write a program that sums up the even numbers from 2 to 100.

10 for Loop Exercise (2) Initialize sum to 0 For number from 2 to 100 sum = sum + number number = number + 2 Print sum

11 while or for? Everything that can be done with a for loop can also be done with a while loop. For problems where the control variable has specific initial and final values and specific increment/ decrement values, so that it follows a pattern, then a for loop is the appropriate solution.

12 Design a Complete Learning Experience Core learning materials + Discussion Questions/Activities + Assignments + Research Projects + Exams/Assessments = Complete Online Course

13 Engage Interaction Example

14 Video: for Loop Click on the video to play

15  Logic Programming  Invented by Colmerauer & Kowalski  Implements Predicate Calculus  Goal Driven: searches for goals using Depth-First Search  Can return multiple answers Prolog Alain Colmerauer Robert Kowalski

16 2. Write for an online audience Short slide text

17 Introduced Prolog Introduced basic Prolog symbols and core Prolog concepts such as rules, facts, goals and questions Closed World Assumption Defined closed world assumption and examined its application to Prolog Prolog Programming Constructed sample programs and examined how Prolog executes questions Summary


Download ppt "Workshop Title Workshop X – Section Y MCT123 Module Title."

Similar presentations


Ads by Google