Lecture 9: CSCI E-1 Spring 2013

Lecture 9: CSCI E-1 Spring 2013

9e4d3e53f8525fdff00691a8b843e66b?s=128

Tommy MacWilliam

April 24, 2013
Tweet

Transcript

  1. Computer Science E-1 Lecture 9: Programming

  2. Final Project

  3. http://cse1.net/store

  4. HTML

  5. Algorithms

  6. What chair is everyone sitting in?

  7. 1. Ask the person to your left where he/she is

    sitting 2. If there is no one to your left, say “one” 3. Add one to the answer of the person to your left, and say it out loud
  8. How many people are here?

  9. None
  10. None
  11. 1. Stand up. You are number 1. 2. Pair off

    with someone standing. Add your numbers together. The sum is your new number. 3. One person sits. The other goes to step 2.
  12. None
  13. How do you make a peanut butter and jelly sandwich?

  14. Scratch

  15. Sprites

  16. Stage

  17. Scripts

  18. None
  19. Statements

  20. None
  21. None
  22. None
  23. Boolean expressions

  24. None
  25. None
  26. Combining expressions

  27. None
  28. None
  29. Conditions

  30. None
  31. None
  32. None
  33. Loops

  34. None
  35. None
  36. Variables

  37. None
  38. Arrays

  39. None
  40. Threads

  41. Events

  42. Mario

  43. Javascript

  44. <script>

  45. alert(‘O hai, world!’);

  46. var socks_on_feet = 0;

  47. if (socks_on_feet == 2) { alert(‘Done!’); } else { alert(‘Keep

    going!’); }
  48. None
  49. var counter = 0; while (counter < 10) { alert(counter);

    counter = counter + 1; }
  50. var counter = 0; while (counter < 10) { alert(counter);

    counter++; }
  51. for (var i = 0; i < 10; i++) {

    alert(i); }
  52. DOM

  53. <html> <head> <title>Web Page</title> </head> <body> <h1><span>A web page!</span></h1> </body>

    </html>
  54. html

  55. html head body

  56. html head body title

  57. html head body title h1 span

  58. document.getElementById

  59. document.querySelectorAll

  60. Thanks! Ben, R.J., Chris, Dan, Ramon

  61. Computer Science E-1 Lecture 9: Programming