1 / 13

Using Conditionals in QuizMe and Making Multiple Screens

Using Conditionals in QuizMe and Making Multiple Screens. Week 3. Activity. Simon Says Everyone stand up Do what you teacher says if she says “ Simon Says ”. Conditionals – If Statements. If (condition is true) then (do something)

reegan
Download Presentation

Using Conditionals in QuizMe and Making Multiple Screens

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. Using Conditionals in QuizMe and Making Multiple Screens Week 3

  2. Activity • Simon Says • Everyone stand up • Do what you teacher says if she says “Simon Says”

  3. Conditionals – If Statements • If(condition is true) then (do something) • When the conditions change, the actions change • E.g. if Simon says “Simon says”then do the command • E.g. if you are thirsty and you have water, you take a drink

  4. Conditionals- If else • If(condition) then (do something) else (do something else) • E.g. You’re asking someone to go to the prom. What happens if they say yes? What happens if they say no?

  5. Flow Charts: Flow of Control Condition must have a value of TRUE or FALSE THEN true If answer is ‘yes’ ELSE false

  6. Flow of Control Phone gets taken away true If you text during class false If (you text during class) Phone gets taken away else Keep phone You keep your phone

  7. Conditionals in App Inventor • Found under Built-in in the Control drawer • if • ifelse true then do true then do false else do

  8. Nested Conditionals • If (condition) then (do something) elseif(condition#2) then (something else) else (do something else) • E.g. if I get into Stanford I’ll go there. Elseif I get into Berkeley I’ll go there. Elseif I get into Harvey Mudd, I’ll go there.

  9. Multiple Screens

  10. QuizMe

  11. Resources If you have problems • Watch the YouTube video • Read the App Inventor book on conditionals (page 259-266) • Post questions to the Technovation Challenge Google Group

  12. Reminder:Weekly Reflections • What did your team like about this week? • What challenges did your team have this week? • Anything else your team would like to share?

  13. Share with us onTwitter & Facebook Tweet us: @_technovation_ #technovation Like us on Facebook: Technovation Challenge

More Related