App Inventor Application of Pseudo Code Learning Outcomes

  • Slides: 11
Download presentation
App Inventor Application of Pseudo Code

App Inventor Application of Pseudo Code

Learning Outcomes � LO 1: Recall key words associated with pseudo code (sequence, selection,

Learning Outcomes � LO 1: Recall key words associated with pseudo code (sequence, selection, iteration). � LO 2: Demonstrate application of pseudo code for parts of App.

Algorithm= a sequence of steps to solve a problem. Is a procedure in terms

Algorithm= a sequence of steps to solve a problem. Is a procedure in terms of action to be executed (taken) and order in which their executed (done). � Eg recipe in a cook book � Can be expressed in pseudo code and flowcharts.

� http: //www. youtube. com/watch? v=k 0 xgj. Uh. E G 3 U

� http: //www. youtube. com/watch? v=k 0 xgj. Uh. E G 3 U

� Starter sheet! activity sheet match the definitions

� Starter sheet! activity sheet match the definitions

Pseudo Code General way of describing an algorithm. It closely resembles the structure of

Pseudo Code General way of describing an algorithm. It closely resembles the structure of a programming language but does not use the specific syntax. � Allows you to include control structures such as WHILE, IF-THEN-ELSE

Pseudo code key words � SEQUENCE- statements executed in order Statement 1, Statement 2,

Pseudo code key words � SEQUENCE- statements executed in order Statement 1, Statement 2, Statement 3 � SELECTION-To complete a Selection we need to tell the program what to look for and then make a decision. IF, THEN, ELSE, ENDIF � ITERATION- repeated. Where a set of instructions is WHILE, DO, FOR

Procedures in Your App’s What are all the procedures that happen in your App’s?

Procedures in Your App’s What are all the procedures that happen in your App’s? Launch button to home screen Post to FB button

My App Selection IF shake phone THEN go to screen 2 ELSE stay on

My App Selection IF shake phone THEN go to screen 2 ELSE stay on home screen END IF Iteration WHILE screen 1 is displayed DO play sound 1 DO display image 1 DO display text label 1 END WHILE

Task � Have APP a list of all the procedures in your teams �

Task � Have APP a list of all the procedures in your teams � Each person in the group pick one and write the pseudo code for it � Continue dividing up the procedures in your team till you have pseudo code for all the procedures in your App.

Plenary This is my fortune teller App and behind every colour is a different

Plenary This is my fortune teller App and behind every colour is a different fortune. Once you have seen your fortune the app, after 10 seconds, automatically goes to this ‘pick a colour screen’. I need the pseudo code for what happens when the Green button is pressed.