180 likes | 337 Views
V2012.13. Agenda. Old Business Delete Files New Business Week 16 Topics: Intro to HTML/CSS Questions? Tech Club Forums Introduction to Programming 2 (Review) Introduction to Programming 3. HTML/CSS Class. QUESTIONS?. Tech Club Forums.
E N D
Agenda • Old Business • Delete Files • New Business • Week 16 Topics: • Intro to HTML/CSS • Questions? • Tech Club Forums • Introduction to Programming 2 (Review) • Introduction to Programming 3
HTML/CSS Class QUESTIONS?
Tech Club Forums • Ask questions, offer suggestions, share info • Check it out: • http://ahstechcrew.org/forums/
Intro to Programming 2 Review • API • Algorithm • Array • Boolean • Character • Code/Source • Constant • Data Types • Debug • Floating Point • Git • GUI • Integer • Literal • Object Oriented • Scripting Language • SDK • String • User Interface • Variable • Virtual Machine
Intro to Programming 3 • Additional Key Concepts • Intro to Scratch • Write First Program
Intro to Programming 3 • Intro to Scratch • Additional Key Programming Concepts • Write First Program(s)
Intro to Scratch • Scratch is a programming language that makes it easy to create your own interactive stories, animations, games, music, and art -- and share your creations on the web. • Develop important design and problem-solving skills • Learning how to think creatively • Reason systematically • Work collaboratively • http://beta.scratch.mit.edu/
Intro to Scratch • Statement • Simply a directive that tells the computer to do something. Think of it as a command or an instruction. • Boolean Expression • Either true or false • Condition • Something that must be true in order for something to happen
Intro to Scratch • Loops • Induce multiple executions of statements • Variables • Placeholder for some value, much like x and y are popular variables in algebra • Thread • A mini-program within a program that can execute at the same time as other threads
Intro to Scratch • Event • Multiple threads can communicate with each other by signaling events and handling events • An event, then, is like a message from one thread to another • Signalers • Handlers
Steps to Writing a Program • Gather requirements • Choose a programming language • Writea program • Compilethe program* • Runor Executethe program • Debugthe program • Repeatprocess until the program is completed *Depending on the language, you may not need to compile your program.
Let’s Write a Program! Write a program that outputs “Hello World!” • Gather requirements • What approach should I take? • What do I need for this program?
Let’s Write a Program! Write a program that asks for the users name, the displays it. • Gather requirements • What approach should I take? • What do I need for this program?
Let’s Write a Program! Write a program that adds two numbers • Gather requirements • What approach should I take? • What do I need for this program?
Let’s Write a Program! Write a program that prompts the user for his/her name, display the name, then adds two numbers the user inputs, display the results. • Gather requirements • What approach should I take? • What do I need for this program?
Let’s Write a Program! Write a program that prompts the user for his/her name, display the name, then adds two numbers the user inputs, display the results. Then ask if the user wants to add more numbers, if yes, add more numbers, if no, quit. • Gather requirements • What approach should I take? • What do I need for this program?