AHS-TechClub-041613 - Avon High School Tech Crew

advertisement
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
Avon High School Tech Club
2
HTML/CSS Class
QUESTIONS?
Avon High School Tech Club
3
Tech Club Forums
• Ask questions, offer suggestions, share info
• Check it out:
– http://ahstechcrew.org/forums/
Avon High School Tech Club
4
Intro to Programming 2 Review
•
•
•
•
•
•
•
•
API
Algorithm
Array
Boolean
Character
Code/Source
Constant
Data Types
Avon High School Tech Club
•
•
•
•
•
•
•
•
Debug
• SDK
Floating Point • String
Git
• User Interface
GUI
• Variable
Integer
• Virtual Machine
Literal
Object Oriented
Scripting Language
5
Intro to Programming 3
• Additional Key Concepts
• Intro to Scratch
• Write First Program
Avon High School Tech Club
6
Intro to Programming 3
• Intro to Scratch
• Additional Key Programming Concepts
• Write First Program(s)
Avon High School Tech Club
7
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/
Avon High School Tech Club
8
Intro to Scratch
Avon High School Tech Club
9
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
Avon High School Tech Club
10
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
Avon High School Tech Club
11
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
Avon High School Tech Club
12
Steps to Writing a Program
1.
2.
3.
4.
5.
6.
7.
Gather requirements
Choose a programming language
Write a program
Compile the program*
Run or Execute the program
Debug the program
Repeat process until the program is completed
*Depending on the language, you may not need to compile your program.
Avon High School Tech Club
13
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?
Avon High School Tech Club
14
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?
Avon High School Tech Club
15
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?
Avon High School Tech Club
16
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?
Avon High School Tech Club
17
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?
Avon High School Tech Club
18
Download