120 likes | 264 Views
Answers to QUIZ 1. What are the steps in Polya’s problem solving methodology? Understand the problem Design or devise a solution Implement the solution Evaluate the solution What are the 3 control structures in computer programming? Sequence 2. Decision 3. Repetition
E N D
Answers to QUIZ 1 • What are the steps in Polya’s problem solving methodology? • Understand the problem • Design or devise a solution • Implement the solution • Evaluate the solution • What are the 3 control structures in computer programming? • Sequence 2. Decision 3. Repetition • What was the most important thing you learned today? Your own opinion! Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: rest of the week • Think about what you want to do • Working in pairs or trios: • You will build your own world including: • Some common goal your team chooses • Event handling • All three control structures • At least three active objects • Help each other, share • Ideas • Solutions Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: Our schedule • Day One: • Introduction, Tutorials, Examples • Day Two: • Begin your own first World with Events • Day Three: • Add Decision • Day Four: • Add Repetition • Day Five: • Demonstrations Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
REMINDER: Homework Schedule • Day One: • Go over tutorials and think about what you want to do for your project • Practice using events in your world • Day Two: • Practice adding decision structures • Day Three: • Practice adding repetition • Day Four: • Fine tune your final project Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Day Two - Events • Do something when user • Clicks • Presses a key • Examples • Penguins sing when clicked • Penguins sing song when any key pressed • Song is recorded when the Record button is clicked • Ice Skater skates toward an object when clicked Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Using Polya, make a plan and include events • Understand: What is the goal? • Design: How will the goal be attained? • Implement: Do it in Alice! • Evaluate: Can we make it better? Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Understand: Write it down. • What is the goal? • What questions do you have? • What objects will you need? • What will the objects need to do? • What is the sequence of events? • What decisions will be needed? • What will need to be repeated? Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Design a Solution: Tools • Flow charting • Psuedocoding • UML diagrams Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Implement the Solution: Code! • In Alice! • Set the scene: • Choose a template • Add objects and “pose them” • Write the methods and create events • Play! Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Evaluate the Solution • Did it reach the goal? • Were their any problems? • What could make it better? • Make it better! • Play again Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
Solve a problem with your team: • Answer the Understand questions • Begin your Design on paper • Write the psuedocode/flow chart • Does it make sense? • Implement a simple event and make it work • Evaluate it and make it better! Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007
QUIZ TWO:Understand Template • The goal is to _________ • How will I_, __, __, _, …, _? • Objects I need are • My ___object needs to ___ • My ___object needs to ___ • My ___object needs to ___ • The order of events is 1,2,3,4,5,6… • If __ then ____ else ___ • ___ will repeat based on ____ Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007