Lesson 3.1 Review: audible tri-tone Write a snap script that… Asks the user to enter 3 numbers corresponding to tone values Checks for valid inputs and.

Slides:



Advertisements
Similar presentations
Modelling with expert systems. Expert systems Modelling with expert systems Coaching modelling with expert systems Advantages and limitations of modelling.
Advertisements

1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Making a “P and J” sandwich
1 How to make a peanut butter and Jelly sandwich A Recipe From Cherie Lau.
WRITING INSTRUCTIONS GUIDING A READER THROUGH A PROCESS.
II. Stoichiometry in the Real World (p ) Stoichiometry – Ch. 9.
How to make a peanut butter and jelly sandwich
Determining how much Peanut butter is optimal on a PB&J Sand Sandwich By Mr. Anderson.
Peanut Butter and Jelly Sandwich Ingredients Peanut butterTwo slices of bread Jelly or jamKnifePlate.
How to Make a Peanut Butter and Jelly Sandwich By Kristy and Jon.
Lauren O’Malley May 11,  Purpose: To teach the art of mastering the Peanut Butter & Jelly sandwich.  Audience: The audience includes people 8.
Hamilton County Developmental Disabilities Services
Unordered, Ordered, and Definition List By: Jaxson Hunter Feburary,
* Programming is the activity of creating a set of detailed instructions (program) that when carried out on a consistent set of inputs will result in.
Types of Paragraphs What’s the Difference?. Different Types of Paragraphs  DESCRIPTIVE: To inform or entertain -The writing gives the reader enough details.
Cross Contamination Experiment Safety and Sanitation.
COP1332 Introduction to Programming Using Visual Basic.NET A journey into thinking Professor Walton.
The Writing Process Steps in writing an essay
Requirements Engineering n Elicit requirements from customer  Information and control needs, product function and behavior, overall product performance,
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
1 Programming for Engineers in Python Autumn Lecture 5: Object Oriented Programming.
User Personas Assignment IS 485, Professor Matt Thatcher.
CS 201 Functions Debzani Deb.
CS350/550 Software Engineering Lecture 1. Class Work The main part of the class is a practical software engineering project, in teams of 3-5 people There.
Pengukuran Opini Publik. Survey Research Survey research is a technique that well designed for assessing the prevalence and distribution of attitudes,
Unit 7 How do you make a banana milk shake? Section B.
How to make a sandwich? Two slices of buttered bread with meat.
Basic HTML Hyper text markup Language. Lesson Overview  In this lesson, you will learn to:  Create Lists  Horizontal rule (line)  Create a page for.
Persuasive Writing.
1/19 Component Design On-demand Learning Series Software Engineering of Web Application - Principles of Good Component Design Hunan University, Software.
Requirements Analysis
Pak Kau College S1 English Theme 5 Food. My favourite breakfast – Tuna Sandwich How can I make Tuna Sandwich?
How to make a Peanut Butter and Jelly Sandwich!
Catie Welsh January 19,  Office Hours ◦ After Class Today ◦ Come if you don’t have Eclipse working 2.
PROCEDURE TEXT Written By : Faiz Muflih. DEFINITIONS  Texts that explain how something works or how to use instruction or operation manuals e.g. how.
CSC 1701B Computing: Science and Creativity
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
Warm Up 1.Write a detailed procedure on how to make a peanut butter and jelly sandwich. The following materials are available to you to make your sandwich:
CS Data Structures I Chapter 2 Principles of Programming & Software Engineering.
Lecture 13: 10/10/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
How to Make the Perfect PB&J By: Jade Edwards. Materials Needed: ➾ 2 slices of white bread ➾ 1 jar of peanut butter ➾ 1 jar of grape jelly ➾ 1 paper plate.
Mr Gromit says “Click Here on Production” Chocolate Spread Sandwich.
Software. What is software?  Review: recall the difference between hardware and software (rigid vs. fluid)  Software, in essence, is a set of instructions.
Algorithms CS280 – 10/20/05. Announcement  Part 1 of project 2 due.  Read chapters 10, 7 for this unit  Tuesday we will also be in the classroom We.
Presented by: Mr. Pugh’s Class 2011 Ingredients Peanut Butter Jelly Two Slices of Bread.
Lists Module 2: XHTML Basics LESSON 8. Module 2: XHTML Basics LESSON 8 Lesson Overview In this lesson, you will learn to:  Create lists using XHTML code.
SANDWICH REVIEW. Sandwiches fall into two categories 1-Hot 2-Cold.
INFORMATIVE WRITING: HOW-TO. LESSON 1 INTRODUCTION.
Informational Writing (Procedural) ELACC5W2: Write informative/explanatory texts to examine a topic and convey ideas and information clearly. EQ: How can.
Unit 8 How do you make a banana milk shake?
BTEC NCF Dip in Comp: Unit 01 Principles of Computer Science Lesson 01 – Computational Thinking Mr C Johnston.
BEGINNER PROGRAMMING LESSON
Lesson Objectives Aims Understand the following:
Stoichiometry in the Real World
Timetables.
How to make a peanut butter & jelly sandwich
BEGINNER PROGRAMMING LESSON
Open on the student drive
SCIENCE ON FRIDAYS.
Reading class Making a Sandwich.
9/29 & 10/2 GOOD MORNING! After you have copied the Objective and Homework in your agenda, please note the corrected ACT date for April. I initially told.
II. Stoichiometry in the Real World
BEGINNER PROGRAMMING LESSON
Applying Use Cases (Chapters 25,26)
What Is Good Software(Program)?
Developing A Good Procedure
Microwave Cooking.
Presentation transcript:

Lesson 3.1 Review: audible tri-tone Write a snap script that… Asks the user to enter 3 numbers corresponding to tone values Checks for valid inputs and displays an error message for: Anything < 30 (impossible to hear without a subwoofer) Anything > 90 (gives Mr W a migraine) Check for these values and displays an error message Plays a tri-tone (like the old iphone text tone) after all inputs have been entered

Lesson 3.2 Abstraction and Friends

Today we’re going to cover 4 important topics in computer science: 1.Abstraction 2.Detail removal 3.Generalization 4.Procedural decomposition

Abstraction Formal definition: A technique for managing complexity of computer systems by establishing a level of complexity on which a person interacts with the system Informal definition: The ability to effectively use things without needing to understand how they work Examples: Driving a car without knowing how the engine works Asking Mr W to open a jar of jelly without knowing how the muscles in his arm work Abstraction is magic!

Abstraction Take a minute to brainstorm a 2-3 things in your daily life that are abstracted, meaning you use them without needing to know how they work An important aspect of abstraction is acceptable complexity. Example: Microwaves, you don’t need to understand how microwaves affect hydrogen molecules, but you do need to know how to use the control panel. The part you need to understand is the interface. Look at your examples again and write out the complex part that has been abstracted out and what the interface is.

Detail removal How does gravity work in real life? How did you make gravity work in your project 2? Take a minute to brainstorm 2-3 differences between real gravity and your project 2 gravity. These differences are an example of detail removal

Detail removal Formal definition: reducing the complexity of an algorithm or process by focusing on the important parts Informal definition: simplifying an algorithm so that its just good enough for its purpose Think back to our lesson on computer modeling… Models just need to look and feel real, they don’t need to be 100% accurate It’s often impossible to get 100% accuracy

Generalization Formal definition: Defining a domain by a set of common characteristics and applying this to a set of elements Informal definition: combining a group of related concepts or processes into a single category Example: Opening a jar of peanut butter or jelly, spreading peanut butter or jelly on bread Take a minute to look over the old labs and find places where there are similar processes

Procedural decomposition Formal definition: breaking a complex problem or system into parts that are easier to conceive, understand, program, and maintain Informal definition: breaking a big problem into little pieces This is usually accomplished using the concepts we just defined: abstraction, detail removal, and generalization

Food algorithms revisited In small groups, use procedural decomposition to write an algorithm for making a club sandwich Ingredients: bread, chicken, bacon, lettuce, tomato, and mayonnaise All ingredients start out cooked and sliced, but in containers Identify places where you can use abstraction, detail removal, and generalization

Food algorithms revisited Write ALL of your names on the top of a SINGLE sheet of paper with your algorithm and examples of abstraction, detail removal, and generalization. Turn the paper into Mr W