Presentation is loading. Please wait.

Presentation is loading. Please wait.

William Sandqvist Structure diagram Division Time ”Morningwhile has gold in mouthd” Morning routine Get dressed Eat breakfastGo to school.

Similar presentations


Presentation on theme: "William Sandqvist Structure diagram Division Time ”Morningwhile has gold in mouthd” Morning routine Get dressed Eat breakfastGo to school."— Presentation transcript:

1 William Sandqvist william@kth.se Structure diagram Division Time ”Morningwhile has gold in mouthd” Morning routine Get dressed Eat breakfastGo to school by the 2IT Data students …

2 William Sandqvist william@kth.se Sequence (order in time) 8:00 am8:02 am8:05 am Time Sequence Sequence parts Get dressed Eat breakfast Go to school Morning routine

3 William Sandqvist william@kth.se Structure diagram Division Time ”Morningwhile has gold in mouthd” Find clothesPut clothes on Morning routine Get dressed Eat breakfastGo to school Take from wash basket Ask girlfriend where clothes are

4 William Sandqvist william@kth.se Selection BluePinkWhite What colour on your socks? If blue exists If blue doesn’t exist, but pink does Else Selection Selection parts

5 William Sandqvist william@kth.se Structure diagram Division Time ”Morningwhile has gold in mouthd” Many glasses of beer One glass of beer Morning routine Take from wash basket Ask girlfriend where clothes are Find clothesPut clothes on Get dressedEat breakfastGo to school

6 William Sandqvist william@kth.se Iteration (repetition) Many glasses of beer One beer Drink beer (lightbeer) As long as you’re thirsty Iteration Iteration part

7 William Sandqvist william@kth.se Structure diagram Division Time ”Morningwhile has gold in mouthd” Take a cabRun One step Morning routine Take from wash basket Ask girlfriend where clothes are Find clothesPut clothes on Get dressedEat breakfastGo to school Many glasses of beer One glass of beer

8 William Sandqvist william@kth.se Flow chart Move foot one step Run Go to school Eat one pancake Eat breakfast Put on the clothes Ask girl/boyfriend Get from laundry basket Search clothes Get dressed Morning route IF you find basket WHILE pancakes <> 0 Take a cab IF money = 0 ELSE WHILE distance to school <> 0

9 William Sandqvist william@kth.se Crossing A B Imagine driving in car B, just behind another car A. You come to a crossing. How will you know which direction it will chose? Car A has to make a selection

10 William Sandqvist william@kth.se Crossing a selection of directions How can you see which direction the car in front of you will choose? Crossing Green signal STOPDRIVE Red signal Left blinkerRight blinkerNo blinker Drive left Straight ahead Drive right Selection

11 William Sandqvist william@kth.se Marriage - a selection? Marry girl Young man´s future choice not JSP

12 William Sandqvist william@kth.se Selectionparts A selection must contain at least two selection components. If It only contains one there is no selection. Young man´s future choice Marry girl Be free!! Like this!

13 William Sandqvist william@kth.se Al Bundy? It is however possible to leave a selection component empty. We know the end…? Peg.. - make dinner! Young man´s future choice Marry girl

14 William Sandqvist william@kth.se Rules of Christmas not JSP Checks his slade Santa Claus X-mas day Gives one gift * While gifts not 0

15 William Sandqvist william@kth.se Santa changed his mind Parts connected to the same component must be of similar type This is CORRECT!! Santa Claus X-mas day Checks his slade First Hands out gifts Last Gives one gift While gifts not 0 *

16 William Sandqvist william@kth.se Paint house - an iteration not JSP Paint House Get paint * While painter not satisfied with color Paint with Brush * While entire house not painted

17 William Sandqvist william@kth.se Now you can begin to paint Iterations Iteration components An iteration can only contain one repeated component Get paintBegin to paint Paint House Get one can of paint Paint with Brush * * While painter not satisfied with color While entire house not painted OK !

18 William Sandqvist william@kth.se JSP-editor Henrik Engström JSP-editor

19 William Sandqvist william@kth.se Generate C

20 William Sandqvist william@kth.se Web-Quiz


Download ppt "William Sandqvist Structure diagram Division Time ”Morningwhile has gold in mouthd” Morning routine Get dressed Eat breakfastGo to school."

Similar presentations


Ads by Google