CS 104 – Fall 2011 Exploring Computer Science Lecture 20: November 14, 2011 Procedural Abstraction and List Processing.

Slides:



Advertisements
Similar presentations
Computer Science 112 Fundamentals of Programming II List Iterators.
Advertisements

Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
E-2020 Science Classes New Year 2012 Procedures. Vocabulary Write each vocabulary word Each definition, in your own words if possible Draw a picture to.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
CS 206 Introduction to Computer Science II 10 / 22 / 2008 Instructor: Michael Eckmann.
Designing Algorithms Csci 107 Lecture 4. Outline Last time Computing 1+2+…+n Adding 2 n-digit numbers Today: More algorithms Sequential search Variations.
Faculty of Sciences and Social Sciences HOPE Structured Problem Solving Week 12: Data Structures 1 Stewart Blakeway FML 213
Passing Arguments Question Example: IS1102 Exam Autumn 2001.
What Data Do We Have? Sections 2.2, 2.5 August 29, 2008.
Engineering H193 - Team Project Gateway Engineering Education Coalition Spring Quarter 2006 P. 1 Today and the Week Ahead Week 3 Day 1.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 3, Lecture 2.
Monday, 12/9/02, Slide #1 CS 106 Intro to CS 1 Monday, 12/9/02  QUESTIONS??  On HW #5 (Due 5 pm today)  Today:  Recursive functions  Reading: Chapter.
1 CSI 101 Elements of Computing Fall 2009 Lecture #4 Using Flowcharts Monday February 2nd, 2009.
Statistics for the Social Sciences Psychology 340 Spring 2005 Introductions.
1 September 6, 2005CS150 Introduction to Computer Science I What Actions Do We Have Part 1 CS150 Introduction to Computer Science I.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 17: Linked Lists.
CS 501: Software Engineering Fall 2000 Lecture 5 (a) Documentation (b) Requirements Analysis.
C++ Programming: Program Design Including Data Structures, Fifth Edition Chapter 17: Linked Lists.
Wednesday, 11/6/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 11/6/02  QUESTIONS?? – HW # 4 due Monday  Today:  Return HW #3  Arrays (Chap. 10)  Reading:
Testing a program Remove syntax and link errors: Look at compiler comments where errors occurred and check program around these lines Run time errors:
MA 102 Statistical Controversies Monday, February 18, 2002 Today: Discuss Chapter 9 concepts and exercises Review Part 1 of the text Test 1 question types.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
CS 104 October 26, 2011 App Inventor. Agenda Discuss guest speakers Discuss quiz Finish Paint Pot Discuss concepts from Chapters 2 & 3 Mole Mash (if time.
PYTHON PROGRAMMING Week 10 – Wednesday. TERMS – CHAPTER 1 Write down definitions for these terms:  Computation  Computability  Computing  Artificial.
Microsoft Visual Basic 2008 CHAPTER NINE Using Arrays and File Handling.
Stacks and Queues Introduction to Computing Science and Programming I.
BA271 Week 9 Lecture Three topics: o Upcoming schedule o Query Quiz review o Normalizing a database.
Cs205: engineering software university of virginia fall 2006 Data Abstraction David Evans
Term project CS3141 Fall Project #1 A Calendar Software –Core Functions multiple user access –control other user to read/modify your calendar event.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
Week 7. Lecture 2 Functions, Arrays, PHP&MySQL. Function with More than one argument and a return statement For a function to return a value, the return.
Software Breakdown. Monday, October 26, 2009 CS410 Green Team Fall High Level Architecture.
Your First Data Structure: 1D Array Shirley Moore CS 1401 Spring 2013 cs1401spring2013.pbworks.com April 9-11, 2013.
COMP Recursion, Searching, and Selection Yi Hong June 12, 2015.
Arrays Part 9 dbg. Arrays An array is a fixed number of contiguous memory locations, all containing data of the same type, identified by one variable.
CS 235: User Interface Design September 22 Class Meeting Department of Computer Science San Jose State University Fall 2014 Instructor: Ron Mak
Loops, Databases, Procedures, and Lists Dr. José M. Reyes Álamo.
CS 104 October 12, 2011 Potpourri. Agenda Scratch Kinect demo Quiz discuss Getting Ready for App Inventor Next Monday  Exam.
 Introduction to Computer Science COMP 51 – Fall 2012 – Section 2 Structures.
Q and A for Sections 2.9, 4.1 Victor Norman CS106 Fall 2015.
Visual Basic Programming
CIS4368: Advanced DatabaseSlide # 1 PL/SQL Dr. Peeter KirsSpring, 2003 PL/SQL.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Class Average Application Introducing the Do...Loop While and Do...Loop Until.
CS161 Topic #16 1 Today in CS161 Lecture #16 Prepare for the Final Reviewing all Topics this term Variables If Statements Loops (do while, while, for)
Lecture 23: November 30, 2011 Creative Ideas Enabled by Computer Science CS 104 – Fall 2011 Exploring Computer Science.
CSC Programming I Lecture 6 September 4, 2002.
CompSci 6 Introduction to Computer Science Sept 29, 2011 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not.
Agenda Perform Quiz #1 (20 minutes) Loops –Introduction / Purpose –while loops Structure / Examples involving a while loop –do/while loops Structure /
CompSci 101 Introduction to Computer Science February 10, 2015 Prof. Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were.
COMPUTER PROGRAMMING 2 ArrayLists. Objective/Essential Standard Essential Standard 3.00Apply Advanced Properties of Arrays Essential Indicator 3.02 Apply.
CS 501: Software Engineering Fall 1999 Lecture 4 (a) Documentation (b) Requirements Analysis.
2005MEE Software Engineering Lecture 7 –Stacks, Queues.
CSC 4630 Meeting 17 March 21, Exam/Quiz Schedule Due to ice, travel, research and other commitments that we all have: –Quiz 2, scheduled for Monday.
Lecturer’s desk INTEGRATED LEARNING CENTER ILC 120 Screen Row A Row B Row C Row D Row E Row F Row G Row.
Logical Operators.  Quiz  Let's look at the schedule  Logical Operators 2.
CS 104 – Fall 2011 Exploring Computer Science Build Your Own Blocks September 19, 2011.
Lecture 9:FXML and Useful Java Collections Michael Hsu CSULA.
LifeGuide: Experiences of a new user Leanne Morrison 07 July 2010.
DBM 405 Innovative Education- -snaptutorial.com
Use proper case (ie Caps for the beginnings of words)
Cs212: Data Structures Computer Science Department Lecture 7: Queues.
Visual Programming Week # 11
JavaScript.
Programming Lists of Data 靜宜大學資管系 楊子青
CS150 Introduction to Computer Science 1
COP 2700 – Data Structures (SQL)
Hint idea 2 Split into shorter tasks like this.
Visual Programming week # 14 Review for Final Exam.
F T T T F.
Presentation transcript:

CS 104 – Fall 2011 Exploring Computer Science Lecture 20: November 14, 2011 Procedural Abstraction and List Processing

Schedule Today  Procedural Abstraction in App Inventor  List Processing in App Inventor  High Score List Processor Wednesday  No quiz  Return quizzes 5 and 6; last team homework  Big Data Lecture  Storing Databases Next Monday  Exam 2  Focus on App Inventor

General Idea Project example for today  Allow the user to enter high scores  Maintain a list of the top-5 highest scores Requirements  Procedure to initialize a list  Procedure to insert a new score into the proper location  Procedure to print contents of list to a textbox

List Processing Lists in App Inventor are similar to those in BYOB  Creating a list, selecting/replacing/removing/inserting  Functions for checking membership, location of an item, contents empty An error when going beyond the size of a list

Iterating over a list App Inventor offers the forRange and forEach control constructs

App Inventor Procedures App Inventor provides procedures that can receive arguments, and either return a result (like BYOB reporter) or not return a result (like BYOB command)

High Score List Keeper Variable declarations and simple events

High Score List Keeper insertItem

High Score List Keeper