GridWorld An Introduction
|
|
- Preston Bennett
- 5 years ago
- Views:
Transcription
1 GridWorld An Introduction Frances P. Trees, Drew University Barbara Ericson, Georgia Tech Donald Allen, Troy High School Ann Shen, Bishop Strachan School Laurie White, Mercer University CS&IT
2 Why Use Case Studies? Allow students the benefits of apprenticeship. Make large programs accessible to students. Particularly well suited for active learning and team work. Encourage students to reflect on solutions. The least gender-biased of all types of AP Free Response questions. CS&IT
3 AP Overview Framework derived from MBS (GNU license!) Fewer classes/interfaces: 4 (A) / 7 (AB) implementations, 5 API's Layers: use framework at multiple points in your course Much easier to add your own classes API API public classes API AB API API A A AB AB BoxBug A ChameleonCritter A CS&IT
4 Overview Layers of Information Layer 1: Objects Layer 2: Simple Inheritance Layer 3: Interacting Objects Layer 4: Data Structures Narrative (Student Manual) Part 1: Provides experiments to observe the attributes and behavior of the actors. Part 2: Defines Bug variations. Part 3: Explores the code that is needed to understand and create actors. Part 4: Defines classes that extend the Critter class. Part 5: (CS AB only) Explains grid data structures. CS&IT
5 Layer 1: Objects Can be used as an early introduction to objects Turtle-like graphics: Bug drops flowers Direct Manipulation (like in BlueJ) CS&IT
6 GridWorld Part 2 Bug Variations CS&IT
7 Layer 2: Simple Inheritance Part 2: Bug Variations Simple Inheritance Demo: BoxBug (testable code) BoxBugRunner CS&IT
8 BoxBug Students need to understand Bug constructors Act method Students will need to use canmove turn move Students can create a new type of Bug by modifying BoxBug code CS&IT
9 Extending the Bug class Override Bug's act method Each call to the move method should be guarded by a call to the canmove method Add additional instance fields if needed Add new methods to the subclass if needed Constructors for the subclass call super() or super(somecolor) CS&IT
10 New Bug Classes CircleBug Like BoxBug but only one turn 45 degree turn SpiralBug Like BoxBug but the sidelength gets longer after each turn 90 degree turn CS&IT
11 New Bug Classes ZBug Draws a Z and then stops moving DancingBug Takes an array of integers which are the number of turns it makes when asked to act Then it acts like a Bug CS&IT
12 Some easy, student-designed bugs MirrorBug This bug, when turning, would turn left instead of right. BoostBug This bug works like a power-up in a video game. If a bug moves to a location containing a flower, it eats that flower and it turns 2 times instead of once. CS&IT
13 Cool bugs! Fruit Flies!!! CS&IT
14 GridWorld Part 3 Explore GridWorld Classes CS&IT
15 Part 3: GridWorld Classes and Interfaces A grid contains Actors Two types of grids bounded unbounded Locations in the grid are represented by objects of type Location An Actor knows what grid it lives in and its location within that grid. CS&IT
16 The Actor class When adding or removing actors, do not use the put and remove methods of the Grid interface. Those methods do not update the location and grid instance variables of the actor. That is a problem since most actors behave incorrectly if they do not know their location. To ensure correct actor behavior, always use the putselfingrid and removeselffromgrid methods of the Actor class. CS&IT
17 The Actor class The moveto method allows the actor to move to any valid location. If the actor calls moveto for a location that contains another actor, the other one removes itself from the grid and this actor moves into that location. The act method of the Actor class reverses the direction of the actor. You override this method in subclasses of Actor to define actors with different behavior. CS&IT
18 Cool programs dealing with actors: CS&IT
19 GridWorld Part 4 The Critter class and Extensions CS&IT
20 Layer 3: Interacting Objects (Part 4) Introduces the Critter class (testable code) Uses template method, act It is usually not a good idea to override the act method in a Critter subclass. The Critter class was designed to represent actors that process other actors and then move. If you find the act method unsuitable for your actors, you should consider extending Actor, not Critter. The act method calls five methods accomplishing the following tasks: find neighbors (getactors) process neighbors (processactors) find candidates for move locations (getmovelocations) select a move location (selectmovelocation) make a move (makemove) CS&IT
21 Critters Get all neighbors at 8 surrounding locations Eat neighbors that are not rocks and not critters at 8 surrounding locations Can move to any empty adjacent location picked at random Moves to the new location doesn't turn CS&IT
22 ChameleonCritter (testable code) ChameleonCritter overrides processactors and makemove. Randomly selects a neighbor and changes this critter's color to be the same as that neighbor's. If there are no neighbors, no action is taken. Turns towards the new location as it moves CS&IT
23 CrabCritter CrabCritter overrides getactors, getmovelocations, and makemove. A crab gets the actors in the three locations immediately in front, to its front-right and to its front-left possible move locations are immediately to the right and to the left If the crab critter doesn't move, it randomly turns left or right CS&IT
24 Creative Critters A ChameleonKid changes its color to the color of one of the actors immediately in front or behind. If there is no actor in either of these locations, then the ChameleonKid darkens like the modified ChameleonCritter. A RockHound gets the actors to be processed in the same way as a Critter. It removes any rocks in that list from the grid. A RockHound moves like a Critter. CS&IT
25 Creative Critters Create a class KingCrab that extends CrabCritter. A KingCrab gets the actors to be processed in the same way a CrabCritter does. A KingCrab causes each actor that it processes to move one location further away from the KingCrab. If the actor cannot move away, the KingCrab removes it from the grid. When the KingCrab has completed processing the actors, it moves like a CrabCritter. CS&IT
26 Fun Critters FruitCritters CS&IT
27 Overview of GridWorld Creatures Actors Bugs extending Bug: override Act Rocks Flowers Critters DO NOT OVERRIDE ACT!!! extending Critter overrides one or more of the 5 methods CS&IT
28 Don't like bugs and critters???? CS&IT
29 GridWorld Layer 5 Data Structures AB only CS&IT
30 Layer 4: Data Structures (Part 5) AB only Grid Data Structures Two concrete implementations of the Grid interface are provided, one for a bounded grid that has a fixed number of rows and columns one for an unbounded grid, for which any row and column values are valid. Rather than have repeated code in two classes, the AbstractGrid class defines five methods of the Grid interface that are common to both implementations. CS&IT
31 Grid Hierarchy CS&IT
32 Extentions CS&IT
33 Mice in a Maze Added a Wall, Mouse, and Smart Mouse inherit from Actor Added WallDisplay, MouseDisplay, and SmartMouseDisplay inherit from AbstractDisplay The mice are trying to get to the cheese exit when find cheese Can add stacks and queues for "smarter" mice depth-first search breadth-first search CS&IT
34 School Time School busses must be able to collect students form the bus stops, bring them to schools, and return them to the correct bus stop at the end of the day. CS&IT
35 An Extension - GameOfLife CS&IT
36 An Extension - Sudoku CS&IT
37 Extensions Tile Games CS&IT
38 Beyond GridWorld Greenfoot is a free Java framework You can do GridWorld in Greenfoot You can also move beyond fitting everything in the grid do games like Breakout CS&IT
39 Available GridWorld Materials Code (.zip/238kb) Student Manual (Narrative and Appendixes as a Single Document) Student Manual (.pdf/633kb) Narrative as individual files: Part 1: Observing and Experimenting with GridWorld (.pdf/211kb) Part 2: Bug Variations (.pdf/285kb) Part 3: GridWorld Classes and Interfaces (.pdf/156kb) Part 4: Interacting Objects (.pdf/224kb) Part 5: Grid Data Structures (CS AB only) (.pdf/150kb) Support material for GridWorld Installation Guide (.pdf/172kb) Appendixes (Quick Reference document) (145KB) Solutions Manual (.pdf/374kb) GridWorld Sample Exam Questions GridWorld Sample Questions (.pdf/238kb) New! XBug Sample Code (.zip/3kb) New! Drop Game Sample Code (.zip/3kb) New! CS&IT
40 What's tested? AP Quick Reference Guide Appendix A includes a table with this information itory/ap07_gridworld_quickref_v2.pdf;jsessionid=g1 QQPDMPd0pYfMyV9xYMJfSgQhTY475Zyp2Gydk N33Y1F5zB54Ms! CS&IT
41 Helpful/Interesting URLs Dave Wittry's Board Games Reg Hahne's Save A Heart (apteacher,specialfocus) TreeBoundedGrid, Othello, Sudoku, AntFarm Robert Glenn Martin's GridWorld materials (abbott) y.html Dave Levine's Role Play CS&IT
42 Helpful/Interesting URLs Cay Horstmann's GridWorld site serewritten4gridworld.doc free response questions rewritten in GridWorld ns.doc - solutions Place to download Greenfoot CSTA : Join and download and contribute resources here CS&IT
GridWorld AP Computer Science Case Study. Student Manual
GridWorld AP Computer Science Case Study Student Manual The College Board: Connecting Students to College Success The College Board is a not-for-profit membership association whose mission is to connect
More informationGRIDWORLD OVERVIEW CHRIS THIEL, OFMCAP SFHS APCS 2013
GRIDWORLD OVERVIEW CHRIS THIEL, OFMCAP SFHS APCS 2013 About one fourth of the AP exam will be on Gridworld (5 to 10 multiple-choice questions, one free response question) You must be familiar with the
More informationGRIDWORLD OVERVIEW WHAT IS TESTABLE?
About one fourth of the AP exam will be on Gridworld (5 to 10 multiple-choice questions, one free response question) GRIDWORLD OVERVIEW CHRIS THIEL, OFMCAP SFHS APCS 2013 You must be familiar with the
More informationAP Programming GridWorld Lecture page 1 of 10
page 1 of 10 Below are the actors and their icons that you will need to know for the AP Test: Actor BoxBug Bug ChameleonCritter Critter Flower Rock page 2 of 10 Some GridWorld Classes and Interfaces: page
More informationGridWorld AP Computer Science Case Study. Solutions Manual
GridWorld AP Computer Science Case Study Solutions Manual The AP Program wishes to acknowledge and to thank Judith Hromcik of Arlington High School in Arlington, Texas. Part 1 Answers: Do You Know? Set
More informationPart 3: GridWorld Classes and Interfaces
GridWorld Case Study Part 3: GridWorld Classes and Interfaces In our example programs, a grid contains actors that are instances of classes that extend the Actor class. There are two classes that implement
More informationAnt Farm GridWorld Project
Ant Farm GridWorld Project Robert Glen Martin School for the Talented and Gifted, Dallas, TX Introduction This is the assignment for Ant Farm, a GridWorld programming project. You have a JCreator starter
More informationAP COMPUTER SCIENCE A 2009 SCORING GUIDELINES
AP COMPUTER SCIENCE A 2009 SCORING GUIDELINES Question 2: Stockpile Critter (GridWorld) +1 class header +1/2 properly formed class header for StockpileCritter +1/2 extends Critter class +1 1/2 stockpile
More informationAP GridWorld Review. Actor BoxBug Bug ChameleonCritter Critter Flower Rock
AP GridWorld Review Below are the actors and their icons that you will need to know for the AP Test: Actor BoxBug Bug ChameleonCritter Critter Flower Rock Be thoroughly familiar with each of the actors
More informationBlue Pelican GridWorld
Blue Pelican GridWorld Student Manual AP Computer Science Case Study Copyright, 2007 by Charles Cook; Refugio, Tx (all rights reserved) Table of contents Chapters Page Getting Started Chapter 1-1 Download
More informationChapter 2--BoxBug & SpiralBug
Chapter 2-1 Chapter 2--BoxBug & SpiralBug Modifying the methods of Bug The Bug class is a very fundamental part of GridWorld. It should not be modified; rather, a new class is created extending the Bug
More informationPrerequisite: Computer Science 2 (CS2) with a grade of B+ or better
Course Title: AP Computer Science (APCS) Subject: Mathematics/Computer Science Grade Level: 10-12 Duration: 36 weeks Prerequisite: Computer Science 2 (CS2) with a grade of B+ or better Elective or Required:
More informationStudent Performance Q&A:
Student Performance Q&A: 2008 AP Computer Science A Free-Response Questions The following comments on the 2008 free-response questions for AP Computer Science A were written by the Chief Reader, David
More informationAP COMPUTER SCIENCE A 2008 SCORING GUIDELINES
AP COMPUTER SCIENCE A 2008 SCORING GUIDELINES Question 3: Opossum Critter (GridWorld) Part A: processactors 6 points +1/2 initialize friend/foe counter(s) +2 1/2 loop and identify actors +1 traverse actors
More informationCurriculum Map Grade(s): Subject: AP Computer Science
Curriculum Map Grade(s): 11-12 Subject: AP Computer Science (Semester 1 - Weeks 1-18) Unit / Weeks Content Skills Assessments Standards Lesson 1 - Background Chapter 1 of Textbook (Weeks 1-3) - 1.1 History
More informationAP Computer Science A Course Syllabus
AP Computer Science A Course Syllabus Textbook: Litvin, Maria and Litvin, Gary. Java Methods: Object-Oriented Programming and Data Structures. Skylight Publishing, 2011 http://www.skylit.com Course Description:
More informationStudent Performance Q&A:
Student Performance Q&A: 2004 AP Computer Science A Free-Response Questions The following comments on the 2004 free-response questions for AP Computer Science A were written by the Chief Reader, Chris
More information9/24/2018 Programming Data Structures
9/24/2018 Programming Data Structures Polymorphism Debug https://www.lynda.com/php-tutorials/debugging-php- Advanced-Techniques/112414-2.html 1 Quiz on next Monday, Oct. 1 Questions are from: All the slides
More informationCreating Java Programs with Greenfoot
Creating Java Programs with Greenfoot Using Randomization and Understanding Dot Notation and Constructors 1 Copyright 2012, Oracle and/or its affiliates. All rights Overview This lesson covers the following
More informationGreenfoot! Introducing Java With Games And Simulations. Workshop material. Wombats. Object Orientation. Asteroids, Ants and other creatures.
Greenfoot! Introducing Java With Games And Simulations Michael Kölling University of Kent Birmingham, June 2009 Workshop material Download and install Greenfoot: www.greenfoot.org Wombats. Download the
More informationThe Oracle Academy Supports 1.5 million students in 95 countries
The Oracle Academy Supports 1.5 million students in 95 countries Delivers a complete portfolio of software, curriculum, training, support and certification resources Helps students develop industryrelevant
More informationJAVA CONCEPTS Early Objects
INTERNATIONAL STUDENT VERSION JAVA CONCEPTS Early Objects Seventh Edition CAY HORSTMANN San Jose State University Wiley CONTENTS PREFACE v chapter i INTRODUCTION 1 1.1 Computer Programs 2 1.2 The Anatomy
More informationResults from!the!2011 AP!Computer!Science A Exam Administration
Results from!the!2011 AP!Computer!Science A Exam Administration Dr. Jody Paul Associate Professor of Computer Science Metropolitan State College of Denver Chief Reader AP Computer Science (2008 2012) The
More informationAP Computer Science. Gridworld, inheritance
AP Computer Science Gridworld, inheritance 1 Interfaces Establish a is-a relationship without code sharing One way of addressing the software crisis Allow dividing up a complex task all developers code
More informationStudent Performance Q&A:
Student Performance Q&A: 2011 AP Computer Science A Free-Response Questions The following comments on the 2011 free-response questions for AP Computer Science A were written by the Chief Reader, Jody Paul
More informationPreface A Brief History Pilot Test Results
Preface A Brief History In Fall, 2005, Wanda Dann and Steve Cooper, originators of the Alice approach for introductory programming (in collaboration with Randy Pausch), met with Barb Ericson and Mark Guzdial,
More informationCourse: AP Computer Science A Description and Syllabus Description of Course:
Page 1 Course: AP Computer Science A 2007-2008 Description and Syllabus Description of Course: AP Computer Science A is designed to: Train students in programming methodology to produce quality computer-based
More informationStudent Performance Q&A:
Student Performance Q&A: 2010 AP Computer Science A Free-Response Questions The following comments on the 2010 free-response questions for AP Computer Science A were written by the Chief Reader, Jody Paul
More informationFramework. Set of cooperating classes/interfaces. Example: Swing package is framework for problem domain of GUI programming
Frameworks 1 Framework Set of cooperating classes/interfaces Structure essential mechanisms of a problem domain Programmer can extend framework classes, creating new functionality Example: Swing package
More informationSY nd Sem Syllabi-All Courses.xlsx - 2S-APCSA Page 1 of 5
Greenfoot Exercises - Learning Objects Basic Java Concepts s, Application & 1/8/18 Mon Teacher Training Introductions, Class Rules, Issue materials, 1 1/9/18 Tue discuss/demonstrate: course content and
More informationBig Java Late Objects
Big Java Late Objects Horstmann, Cay S. ISBN-13: 9781118087886 Table of Contents 1. Introduction 1.1 Computer Programs 1.2 The Anatomy of a Computer 1.3 The Java Programming Language 1.4 Becoming Familiar
More informationPROBLEM SOLVING USING JAVA WITH DATA STRUCTURES. A Multimedia Approach. Mark Guzdial and Barbara Ericson PEARSON. College of Computing
PROBLEM SOLVING WITH DATA STRUCTURES USING JAVA A Multimedia Approach Mark Guzdial and Barbara Ericson College of Computing Georgia Institute of Technology PEARSON Boston Columbus Indianapolis New York
More informationAP CSA 3rd Period MR. D. Course Map
AP CSA 3rd Period MR. D. Course Map AP Computer Science in Java (Mocha) Aug. 10, Aug. 11, Aug. 14, Aug. 15, 1.1.1 Introduction to With Karel 1.1.2 Quiz: Karel Commands 1.1.3 Our First Karel Program 1.1.4
More information3D Graphics Programming Mira Costa High School - Class Syllabus,
3D Graphics Programming Mira Costa High School - Class Syllabus, 2009-2010 INSTRUCTOR: Mr. M. Williams COURSE GOALS and OBJECTIVES: 1 Learn the fundamentals of the Java language including data types and
More informationCurriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy.
Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy. Contents Executive Summary... 3 IT Curriculum Overview... 3 Aims... 3 Oracle Academy Introduction to Computer Science...
More informationCsci 102: Sample Exam
Csci 102: Sample Exam Duration: 65 minutes Name: NetID: Student to your left: Student to your right: DO NOT OPEN THIS EXAM UNTIL INSTRUCTED Instructions: Write your full name and your NetID on the front
More informationPart 5: Grid Data Structures (CS AB only)
GridWorld Case Study Part 5: Grid Data Structures (CS AB only) The AbstractGrid Class Two concrete implementations of the Grid interface are provided, one for a bounded grid that has a fixed number of
More informationAP Computer Science A Sample Syllabus 4
Curricular Requirements CR1 The course teaches solutions to problems. Page(s) 3, 4, 5, 6, 7, 8, 10 CR2a The course teaches students to use and implement commonly used algorithms. 4, 9 CR2b The course teaches
More informationInteractive Game Design with Greenfoot YEAR 2 Greenfoot Single-player Interactive Game
MESA VIRTUAL COMPUTER SCIENCE COMPETITION CYBER RULES 2016 Interactive Game Design with Greenfoot YEAR 2 Greenfoot Single-player Interactive Game Level: Type of Contest: Composition of Team: Number of
More informationThe first program: Little Crab
Chapter 2 The first program: Little Crab topics: concepts: writing code: movement, turning, reacting to the screen edges source code, method call, parameter, sequence, if-statement In the previous chapter,
More informationTable of Contents 1.1. Introduction Installation Quick Start Documentation Asynchronous Configuration 1.4.
Table of Contents Introduction 1 Installation 2 Quick Start 3 Documentation Asynchronous Configuration Level Streaming Saving And Loading Slot Templates 1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1
More informationAP Computer Science in Java Course Syllabus
CodeHS AP Computer Science in Java Course Syllabus College Board Curriculum Requirements The CodeHS AP Java course is fully College Board aligned and covers all seven curriculum requirements extensively
More informationAnnouncements. Last modified: Thu Nov 29 16:15: CS61B: Lecture #40 1
Announcements Lab sections on December 5, 6, and 7 will be organized as follows: Students will work on an exam-like set of exercises covering linked lists, stacks, queues, binary trees, binary search trees.
More informationAP COMPUTER SCIENCE AB
AP COMPUTER SCIENCE AB SYLLABUS MR. BACU Course Overview AP Computer Science AB is taught over a period of one year, extending the concepts studied in the previous two courses. The first previous course,
More informationCSC D84 Assignment 2 Game Trees and Mini-Max
0 The Cats Strike Back Due date: Wednesday, Feb. 21, 9am (electronic submission on Mathlab) This assignment can be completed individually, or by a team of 2 students This assignment is worth 10 units toward
More informationHomeschool Programming, Inc.
Online Course Overview Course Title: TeenCoder: Java Programming TeenCoder: Java Programming Online Course Syllabus and Planner Updated November, 2015 Online ISBN: 978-0-9887070-2-3, published 2015 by
More informationCSCI 204 Introduction to Computer Science II
CSCI 204 Project 2 Maze Assigned: Wednesday 09/27/2017 First Phase (Recursion) Due Friday, 10/06/2017 Second Phase (Stack) Due Monday, 10/16/2017 1 Objective The purpose of this assignment is to give you
More informationpublic class Test { public static int i = 0;
Lec 25 Conclusion public class Test { public static int i = 0; public static void main(string[] args) { Test t = new Test(i++); String s = "hi"; t.method1(i, s); System.out.println(i + s); } public Test(int
More informationAP Computer Science A
AP Computer Science A Couse Information: Couse Title: AP Computer Science A Couse Number: 8317 Length of Course: Full year No. of Credits: 1.0 Instructor Information: Instructor: Michael George Email:
More informationAP Computer Science A Syllabus
AP Computer Science A Syllabus Course Overview The focus of this class is structured logic with an emphasis on developing simple, elegant algorithms and thinking in an object-oriented manner. The Java
More informationThe Thomas Hardye School Summer Preparation Task Computer Science A Level
The Thomas Hardye School Summer Preparation Task Computer Science A Level Purpose of task: You should download and install the Python IDLE on your home computer to enable you to practice writing code using
More informationState-Space Search. Computer Science E-22 Harvard Extension School David G. Sullivan, Ph.D. Solving Problems by Searching
State-Space Search Computer Science E- Harvard Extension School David G. Sullivan, Ph.D. Solving Problems by Searching A wide range of problems can be formulated as searches. more precisely, as the process
More informationAP Computer Science A 2013 Free-Response Questions
AP Computer Science A 2013 Free-Response Questions About the College Board The College Board is a mission-driven not-for-profit organization that connects students to college success and opportunity. Founded
More informationAbout Technocamps. We go around schools and show you lots of interesting stuff! We also do things we call bootcamps during holidays!
Greenfoot About Technocamps We go around schools and show you lots of interesting stuff! We also do things we call bootcamps during holidays! Pre-day Questionnaires This is a Computer What do computers
More informationVisit us at
Visit us at www.apluscompsci.com Full Curriculum Solutions M/C Review Question Banks Live Programming Problems Tons of great content! www.facebook.com/apluscomputerscience -Read all 4 questions before
More informationIntroduction to Graphs. CS2110, Spring 2011 Cornell University
Introduction to Graphs CS2110, Spring 2011 Cornell University A graph is a data structure for representing relationships. Each graph is a set of nodes connected by edges. Synonym Graph Hostile Slick Icy
More informationSection Handout #7: Interactors and Classes
Chris Piech Section Handout 7 CS 106A February 27, 2017 Section Handout #7: Interactors and Classes 1. Using Interactors Portions of this handout by Eric Roberts and Nick Troccoli The purpose of this problem
More informationIT101. Inheritance, Encapsulation, Polymorphism and Constructors
IT101 Inheritance, Encapsulation, Polymorphism and Constructors OOP Advantages and Concepts What are OOP s claims to fame? Better suited for team development Facilitates utilizing and creating reusable
More informationCritters. Critter #2 Attack.ROAR Attack.POUNCE Attack.SCRATCH. Critter #1
Critters This assignment was co-created by Stuart Reges and Marty Stepp. This program focuses on classes, objects, and inheritance. You will write the following files: Ant.java, Bird.java, Crab.java, FireAnt.java,
More informationAP Computer Science AB 2007 Free-Response Questions
AP Computer Science AB 007 Free-Response Questions The College Board: Connecting Students to College Success The College Board is a not-for-profit membership association whose mission is to connect students
More informationGetting to know Greenfoot
CHAPTER 1 Getting to know Greenfoot topics: concepts: the Greenfoot interface, interacting with objects, invoking methods, running a scenario object, class, method call, parameter, return value This book
More informationSection Handout #7: Interactors and Classes
Chris Piech Section #7 CS 106A February 26, 2018 Section Handout #7: Interactors and Classes Portions of this handout by Eric Roberts and Nick Troccoli Overview: these problems will give you practice with
More informationCourse: Honors AP Computer Science Instructor: Mr. Jason A. Townsend
Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend Email: jtownsend@pkwy.k12.mo.us Course Description: The material for this course is the equivalent of one to two semesters of an entry
More informationCollege Board. AP CS A Labs Magpie, Elevens, and Picture Lab. New York: College Entrance Examination Board, 2013.
AP Computer Science August 2014 June 2015 Class Description AP Computer Science is the second class after Pre-AP Computer Science that together teach the fundamentals of object-oriented programming and
More informationTeenCoder : Java Programming (ISBN )
TeenCoder : Java Programming (ISBN 978-0-9887070-2-3) and the AP * Computer Science A Exam Requirements (Alignment to Tennessee AP CS A course code 3635) Updated March, 2015 Contains the new 2014-2015+
More informationAP Computer Science A 2008 Scoring Guidelines
AP Computer Science A 2008 Scoring Guidelines The College Board: Connecting Students to College Success The College Board is a not-for-profit membership association whose mission is to connect students
More informationLecture 6. Register Allocation. I. Introduction. II. Abstraction and the Problem III. Algorithm
I. Introduction Lecture 6 Register Allocation II. Abstraction and the Problem III. Algorithm Reading: Chapter 8.8.4 Before next class: Chapter 10.1-10.2 CS243: Register Allocation 1 I. Motivation Problem
More informationSTUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes
STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes Java Curriculum for AP Computer Science, Student Lesson A20 1 STUDENT LESSON A20 Inheritance, Polymorphism, and Abstract Classes INTRODUCTION:
More informationCSE 142, Autumn 2018 Programming Assignment #9: Critters (20 points) Due Tuesday, December 4th, 9:00 PM
CSE 142, Autumn 2018 Programming Assignment #9: Critters (20 points) Due Tuesday, December 4th, 9:00 PM This assignment focuses on classes and objects. Turn in Ant.java, Bird.java, Hippo.java, Vulture.java,
More informationInheritance, Polymorphism, and Interfaces
Inheritance, Polymorphism, and Interfaces Chapter 8 Inheritance Basics (ch.8 idea) Inheritance allows programmer to define a general superclass with certain properties (methods, fields/member variables)
More informationCOURSE TITLE. Introduction to Java LENGTH. One Semester Grades DEPARTMENT. Computer Department Barbara O Donnell, Supervisor SCHOOL
COURSE TITLE Introduction to Java LENGTH One Semester Grades 10-12 DEPARTMENT Computer Department Barbara O Donnell, Supervisor SCHOOL Rutherford High School DATE Fall 2016 Introduction to Java Page 1
More informationCS 201 Advanced Object-Oriented Programming Lab 6 - Sudoku, Part 2 Due: March 10/11, 11:30 PM
CS 201 Advanced Object-Oriented Programming Lab 6 - Sudoku, Part 2 Due: March 10/11, 11:30 PM Introduction to the Assignment In this lab, you will finish the program to allow a user to solve Sudoku puzzles.
More informationCO Java SE 8: Fundamentals
CO-83527 Java SE 8: Fundamentals Summary Duration 5 Days Audience Application Developer, Developer, Project Manager, Systems Administrator, Technical Administrator, Technical Consultant and Web Administrator
More informationStudent Performance Q&A:
Student Performance Q&A: 2016 AP Computer Science A Free-Response Questions The following comments on the 2016 free-response questions for AP Computer Science A were written by the Chief Reader, Elizabeth
More informationComputer Science 210: Data Structures
Computer Science 210: Data Structures Welcome to Data Structures! Data structures are fundamental building blocks of algorithms and programs Csci 210 is a study of data structures design efficiency implementation
More informationBloss, Adrienne and N. Jane Ingram. Lab Manual to Accompany Java Software Solutions. New York, New York: Pearson Education, Inc, 2003.
Course Overview AP Computer Science A emphasizes a study in object-oriented programming methodologies with a focus on problem solving and algorithm development. Data structures, design, and abstraction
More informationCreating Java Programs with Greenfoot
Creating Java Programs with Greenfoot Working with Source Code and Documentation 1 Copyright 2012, Oracle and/or its affiliates. All rights Objectives This lesson covers the following topics: Demonstrate
More informationAP Computer Science A Elevens Lab Student Guide
AP Computer Science A Elevens Lab Student Guide The AP Program wishes to acknowledge and thank the following individuals for their contributions in developing this lab and the accompanying documentation.
More information«Computer Science» Requirements for applicants by Innopolis University
«Computer Science» Requirements for applicants by Innopolis University Contents Architecture and Organization... 2 Digital Logic and Digital Systems... 2 Machine Level Representation of Data... 2 Assembly
More informationCS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE
CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate
More informationCompuScholar, Inc. 9th - 12th grades
CompuScholar, Inc. Alignment to the College Board AP Computer Science A Standards 9th - 12th grades AP Course Details: Course Title: Grade Level: Standards Link: AP Computer Science A 9th - 12th grades
More informationCMSC 202 Final May 19, Name: UserID: (Circle your section) Section: 101 Tuesday 11: Thursday 11:30
CMSC 202 Final May 19, 2005 Name: UserID: (Circle your section) Section: 101 Tuesday 11:30 102 Thursday 11:30 Directions 103 Tuesday 12:30 104 Thursday 12:30 105 Tuesday 1:30 106 Thursday 1:30 This is
More informationTopics for today. Quantitative data Instrumentation and logging Quantitative surveys AB testing Activity
HCI and Design Topics for today Quantitative data Instrumentation and logging Quantitative surveys AB testing Activity Quantitative vs. Qualitative 1. Explanation through numbers 2. Objective 3. Deductive
More informationLecture Notes on Programming Languages
Lecture Notes on Programming Languages 85 Lecture 09: Support for Object-Oriented Programming This lecture discusses how programming languages support object-oriented programming. Topics to be covered
More informationCreating Java Programs with Greenfoot
Creating Java Programs with Greenfoot Defining Methods 1 Copyright 2012, Oracle and/or its affiliates. All rights Overview This lesson covers the following topics: Describe effective placement of methods
More informationEXAM Computer Science 1 Part 1
Maastricht University Faculty of Humanities and Science Department of Knowledge Engineering EXAM Computer Science 1 Part 1 Block 1.1: Computer Science 1 Code: KEN1120 Examiner: Kurt Driessens Date: Januari
More information(Refer Slide Time: 02.06)
Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture 27 Depth First Search (DFS) Today we are going to be talking
More informationAP Computer Science A Syllabus
This syllabus #1829769v1 was reviewed and approved by the College Board in Nov, 2016.. AP Computer Science A Syllabus Last updated November, 2016 Course Overview This AP Computer Science A class uses the
More informationMore on inheritance CSCI 136: Fundamentals of Computer Science II Keith Vertanen Copyright 2014
More on inheritance CSCI 136: Fundamentals of Computer Science II Keith Vertanen Copyright 2014 Object hierarchies Overview Several classes inheriting from same base class Concrete versus abstract classes
More informationCS 1316 Exam 2 Summer 2009
1 / 8 Your Name: I commit to uphold the ideals of honor and integrity by refusing to betray the trust bestowed upon me as a member of the Georgia Tech community. CS 1316 Exam 2 Summer 2009 Section/Problem
More informationPortland State University Maseeh College of Engineering and Computer Science. Proficiency Examination Process
Portland State University Maseeh College of Engineering and Computer Science Proficiency Examination Process 2016-2017 PSU Expectations of Student Competencies Students that apply to PSU s Computer Science
More informationCS2102, D15 Exam 1. Name:
CS2102, D15 Exam 1 Name: You have 50 minutes to complete the problems on the following pages. There should be sufficient space provided for your answers. If a problem asks you to create a class hierarchy,
More informationLab 4 Due April 18 th
Lab 4 Due April 18 th (100 pts) You may work with a partner if you want. Turn in one version with 2 names on it. Do not forget your partner s name. Or work alone. Your choice. Problem 1 (10 pts): Create
More information9/19/2018 Programming Data Structures. Polymorphism And Abstract
9/19/2018 Programming Data Structures Polymorphism And Abstract 1 In-class assignment: deadline noon!! 2 Overview: 4 main concepts in Object-Oriented Encapsulation in Java is a mechanism of wrapping the
More informationParameters and Objects
Parameters and Objects CS + ENGLISH Enrich your computer science skills with the understanding of human experiences, critical thinking, and creativity taught in English. More info: english.stanford.edu/csenglish
More informationCS2102, B11 Exam 1. Name:
CS2102, B11 Exam 1 Name: You have 50 minutes to complete the problems on the following pages. There should be sufficient space provided for your answers. If a problem asks you to create a class hierarchy,
More informationUNDERSTANDING CLASS DEFINITIONS CITS1001
UNDERSTANDING CLASS DEFINITIONS CITS1001 Main concepts to be covered Fields / Attributes Constructors Methods Parameters Source ppts: Objects First with Java - A Practical Introduction using BlueJ, David
More informationPrelim 2. CS 2110, November 20, 2014, 7:30 PM Extra Total Question True/False Short Answer
Prelim 2 CS 2110, November 20, 2014, 7:30 PM 1 2 3 4 5 Extra Total Question True/False Short Answer Complexity Induction Trees Graphs Extra Credit Max 20 10 15 25 30 5 100 Score Grader The exam is closed
More informationD2: explain how the structure and design of a game can assist in maintenance and capacity for extension.
D2: explain how the structure and design of a game can assist in maintenance and capacity for extension. Game Design The original design for the CrabEscape game was There were however a number of issues
More informationObject Oriented Programming. Java-Lecture 11 Polymorphism
Object Oriented Programming Java-Lecture 11 Polymorphism Abstract Classes and Methods There will be a situation where you want to develop a design of a class which is common to many classes. Abstract class
More information