Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama °...
-
Upload
charlotte-norton -
Category
Documents
-
view
214 -
download
2
Transcript of Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama °...
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Answers to QUIZ 1Answers to QUIZ 11.1. What are the steps in Polya’s problem What are the steps in Polya’s problem
solving methodology?solving methodology?1.1. Understand the problemUnderstand the problem2.2. Design or devise a solutionDesign or devise a solution3.3. Implement the solutionImplement the solution4.4. Evaluate the solutionEvaluate the solution
2.2. What are the 3 control structures in What are the 3 control structures in computer programming?computer programming?1.1. Sequence 2. Decision 3. RepetitionSequence 2. Decision 3. Repetition
3.3. What was the most important thing you What was the most important thing you learned today? Your own opinion!learned today? Your own opinion!
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: rest of the weekREMINDER: rest of the week
Think about what you want to doThink about what you want to do Working in pairs or trios:Working in pairs or trios:
• You will build your own world including:You will build your own world including: Some common goal your team choosesSome common goal your team chooses Event handlingEvent handling All three control structuresAll three control structures At least three active objectsAt least three active objects
• Help each other, shareHelp each other, share IdeasIdeas SolutionsSolutions
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: Our scheduleREMINDER: Our schedule Day One: Day One:
• Introduction, Tutorials, ExamplesIntroduction, Tutorials, Examples Day Two: Day Two:
• Begin your own first World with EventsBegin your own first World with Events Day Three: Day Three:
• Add DecisionAdd Decision Day Four: Day Four:
• Add RepetitionAdd Repetition Day Five: Day Five:
• DemonstrationsDemonstrations
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: Homework ScheduleREMINDER: Homework Schedule
Day One:Day One:• Go over tutorials and think about what you Go over tutorials and think about what you
want to do for your projectwant to do for your project• Practice using events in your worldPractice using events in your world
Day Two:Day Two:• Practice adding decision structuresPractice adding decision structures
Day Three:Day Three:• Practice adding repetitionPractice adding repetition
Day Four:Day Four:• Fine tune your final projectFine tune your final project
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Day Two - EventsDay Two - Events Do something when userDo something when user
• ClicksClicks• Presses a keyPresses a key
ExamplesExamples• Penguins sing when clickedPenguins sing when clicked• Penguins sing song when any key pressedPenguins sing song when any key pressed• Song is recorded when the Record button is Song is recorded when the Record button is
clickedclicked• Ice Skater skates toward an object when Ice Skater skates toward an object when
clickedclicked
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Using Using PolyaPolya, make a plan and , make a plan and include eventsinclude events
UnderstandUnderstand: What is the goal?: What is the goal? DesignDesign: How will the goal be : How will the goal be
attained?attained? ImplementImplement: Do it in Alice!: Do it in Alice! EvaluateEvaluate: Can we make it better?: Can we make it better?
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
UnderstandUnderstand: Write it down.: Write it down.
What is the goal?What is the goal? What questions do you have?What questions do you have? What objects will you need?What objects will you need? What will the objects need to do?What will the objects need to do? What is the sequence of events?What is the sequence of events? What decisions will be needed?What decisions will be needed? What will need to be repeated?What will need to be repeated?
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
DesignDesign a Solution: Tools a Solution: Tools
Flow chartingFlow charting PsuedocodingPsuedocoding UML diagramsUML diagrams
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
ImplementImplement the Solution: Code! the Solution: Code!
In Alice!In Alice! Set the scene:Set the scene:
• Choose a templateChoose a template• Add objects and “pose them”Add objects and “pose them”
Write the methods and create eventsWrite the methods and create events Play!Play!
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
EvaluateEvaluate the Solution the Solution
Did it reach the goal?Did it reach the goal? Were their any problems?Were their any problems? What could make it better?What could make it better? Make it better!Make it better! Play againPlay again
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Solve a problem with your team:Solve a problem with your team:
Answer the Answer the UnderstandUnderstand questions questions Begin your Begin your DesignDesign on paper on paper
• Write the psuedocode/flow chartWrite the psuedocode/flow chart• Does it make sense?Does it make sense?
ImplementImplement a simple event and a simple event and make it workmake it work
EvaluateEvaluate it and make it better! it and make it better!
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
QUIZ TWO:QUIZ TWO:UnderstandUnderstand Template Template
The goal is to _________The goal is to _________ How will I_, __, __, _, …, _?How will I_, __, __, _, …, _? Objects I need areObjects I need are
• My ___object needs to ___My ___object needs to ___• My ___object needs to ___My ___object needs to ___• My ___object needs to ___My ___object needs to ___
The order of events is 1,2,3,4,5,6…The order of events is 1,2,3,4,5,6… If __ then ____ else ___If __ then ____ else ___ ___ will repeat based on _______ will repeat based on ____