Numeric answers: select letters to total to your answer. For example 3 = d and e, 11 = b, d and e & 17 = a and e. a) 16 b) 8 c) 4 d) 2 e) 1

Size: px
Start display at page:

Download "Numeric answers: select letters to total to your answer. For example 3 = d and e, 11 = b, d and e & 17 = a and e. a) 16 b) 8 c) 4 d) 2 e) 1"

Transcription

1 Name Period Fill in the table below, identifying the street, avenue and direction of the Robot. (Assume no walls) Answer using the following key Directions: a) North b) South c) East d) West Numeric answers: select letters to total to your answer. For example 3 = d and e, 11 = b, d and e & 17 = a and e a) 16 b) 8 c) 4 d) 2 e) 1 Street Avenue Direction Robot karel = new Robot(3, 7, East, num) putbeeper (); move() At what location(s) did karel put beepers? 18. For the above code to execute without a run time error (error shutoff), what must be true about the locations of Beepers in the world in which karel exist? 19. What is the minimum value that num could be line 1 so that karel executes the code without a run time error (error shutoff)? Street Avenue Direction Robot karel = new Robot(1, 5, North, num) turnleft() At what location(s) did karel put beepers? 28. For the above code to execute without a run time error (error shutoff), what must be true about the locations of Beepers in the world in which karel exist? 29. What is the minimum value that num could be line 1 so that karel executes the code without a run time error (error shutoff)?

2 Using the additional user defined methods, fill in the table below, identifying the street, avenue and direction of the Robot. Assume there are NO walls in the World! public void turnright() public void dropbeeperandmoveback() leftuturn(); leftuturn(); public void leftuturn() public void move3steps() Street Avenue Direction Robot karel = new Robot(2, 3, North, num) move3steps(); leftuturn(); dropbeeperandmoveback(); 34. move3steps(); 35. dropbeeperandmoveback(); 36. move3steps(); dropbeeperandmoveback(); At what location(s) did karel put beepers? 43. For the above code to execute without a run time error (error shutoff), what must be true about the locations of Beepers in the world in which karel exist? 44. What is the minimum value that num could be in line 1 so that karel executes the code without a run time error (error shutoff)? 45. How many times is turnleft() invoked either directly or indirectly by another method? 46. How many times is move() invoked either directly or indirectly by another method?

3 Rewrite the following methods by factoring out common code & writing new user-defined methods. public void problem1() public void problem2() Assume the following methods have been properly defined! movebeeperforward(); climbstair(); pickthreebeepers(); public void problem4() movebeeperforward(); movebeeperforward(); climbstair(); movebeeperforward(); climbstair();

4 For the following lines of code, indicate the order of events: public static void main() Robot red =new Robot(13, 42, East, 10); 47 red is constructed red. 48 fish is constructed Robot blue =new Robot(6, 11, South, 4); 49 blue is constructed Robot fish =new Robot(27, 33, East, 3); 50 red picks Beeper blue. 51 blue puts Beeper blue. 52 fish puts Beeper fish. 53 red moves to 13, 43 red. 54 blue moves to 3, 4 Finally, how many Beepers does each of the following Robots have after executing the above code? red_ blue_ fish_ For each of the following lines of code, identify the error (if any) as: a) Syntax b) Lexical c) Run time d) intent e) none Assume the following World for each code segment. The intent of each Robot is to place another Beeper on the Beeper one block east and one block south of its current location. Beepers Robot karel = new Robot(3, 3, West, 5); Robot karel = new Robot(3, 6, South, 0); karel.move; karel.move(1); karel.turnleft(); karel.turn(); karel.move(); karel.move; karel. karel.

5 Consider the following code: Assume that turnaround() and turnright() work as expected! public void task() True/False: The following blocks of code are equivalent to the code above. That is, each of the following blocks of code completes the exact same task. Travels same streets, avenues, etc. Puts beepers, pick beepers on same corners. Assume each Robot has enough Beepers and there are NO walls in the World! 55. public void task() 56. public void task() 57. public void task() 58. public void task() 59. public void task() 60. public void task()

6 Identify the following as: 1 valid symbol name (A) or as an invalid symbol identifier (B) 2 if valid, identifier or method name (C) or a class name or Type (D) or cannot be determined (E) otherwise identify the error. 61. asmallrobot 62. One Fish 63. A57_ main 65. OneFish+TwoFish Valid/ invalid Identifier or method/ class or Type You will write the ReviewRobot methods that will have the Robot plant Beepers as shown in the following diagram. The Robot will stop at (11, 2) Implement the method movetwiceputbeeper: public void movetwiceputbeeper() Robot Beepers Using the method movetwiceputbeeper, implement the method plantrowof5beepers: public void plantrowof5beepers() // plant a Horizontal row Using the only the methods move and turnleft, implement the method movetl: public void movetl () Using the methods plantrowof5beepers and movetl, implement the method plant2rows: public void plant2rows() // plant two Horizontal rows Using the method plant2rows and movetr *, implement the method plantfield: public void plantfield() * Assume movetr does the same as movetl with turnright() replacing turnleft().

CS112 Lecture: Introduction to Karel J. Robot

CS112 Lecture: Introduction to Karel J. Robot CS112 Lecture: Introduction to Karel J. Robot Last revised 1/17/08 Objectives: 1. To introduce Karel J. Robot as an example of an object-oriented system. 2. To explain the mechanics of writing simple Karel

More information

CS112 Lecture: Extending Classes and Defining Methods

CS112 Lecture: Extending Classes and Defining Methods Objectives: CS112 Lecture: Extending Classes and Defining Methods Last revised 1/9/04 1. To introduce the idea of extending existing classes to add new methods 2. To introduce overriding of inherited methods

More information

PreTest.doc. That was so much fun, lets do it again :^) Name Period. 1 Beeper. 25. How many Beepers are in Karel BeeperBag?

PreTest.doc. That was so much fun, lets do it again :^) Name Period. 1 Beeper. 25. How many Beepers are in Karel BeeperBag? Name Period That was so much fun, lets do it again :^) Assume the following World for each code segment. Fill in the table below, identifying the street, avenue and direction of the Robot. Street Avenue

More information

We know how to navigate between Karel s World view, Karel s Program view and Karel s Execution (or Run) view.

We know how to navigate between Karel s World view, Karel s Program view and Karel s Execution (or Run) view. We know how to write programs using Karel s primitive commands move turnleft pickbeeper putbeeper turnoff We know how to navigate between Karel s World view, Karel s Program view and Karel s Execution

More information

We know have to navigate between Karel s World view, Karel s Program view and Karel s Execution (or Run) view.

We know have to navigate between Karel s World view, Karel s Program view and Karel s Execution (or Run) view. We know how to write programs using Karel s primitive commands move turnleft pickbeeper putbeeper turnoff We know have to navigate between Karel s World view, Karel s Program view and Karel s Execution

More information

IS12 - Introduction to Programming

IS12 - Introduction to Programming IS12 - Introduction to Programming Lecture 5: Loops Peter Brusilovsky http://www2.sis.pitt.edu/~peterb/0012-051/ The iterate instruction How to repeat an action known number of times? iterate

More information

CS 106A, Lecture 3 Problem-solving with Karel

CS 106A, Lecture 3 Problem-solving with Karel CS 106A, Lecture 3 Problem-solving with Karel suggested reading: Karel, Ch. 5-6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

AP CS A Karel J Robot Review Sheet Chapters 5-6

AP CS A Karel J Robot Review Sheet Chapters 5-6 AP CS A Karel J Robot Review Sheet Chapters 5-6 Name: Date: Per: 1. List the 8 primitive predicates that can be used in an if clause: 2. In order for a new class (subclass) that you write to be able to

More information

IS12 - Introduction to Programming. Lecture 6: Advanced Programming with Karel. Peter Brusilovsky

IS12 - Introduction to Programming. Lecture 6: Advanced Programming with Karel. Peter Brusilovsky IS12 - Introduction to Programming Lecture 6: Advanced Programming with Karel Peter Brusilovsky http://www2.sis.pitt.edu/~peterb/0012-051/ if inside while Using if inside while will help us to solve a

More information

CS 106A, Lecture 3 Problem-solving with Karel

CS 106A, Lecture 3 Problem-solving with Karel CS 106A, Lecture 3 Problem-solving with Karel suggested reading: Karel, Ch. 5-6 This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5

More information

Assignment #1: /Survey and Karel the Robot Karel problems due: 1:30pm on Friday, October 7th

Assignment #1:  /Survey and Karel the Robot Karel problems due: 1:30pm on Friday, October 7th Mehran Sahami Handout #7 CS 06A September 8, 06 Assignment #: Email/Survey and Karel the Robot Karel problems due: :0pm on Friday, October 7th Email and online survey due: :9pm on Sunday, October 9th Part

More information

Mehran Sahami Handout #7 CS 106A September 24, 2014

Mehran Sahami Handout #7 CS 106A September 24, 2014 Mehran Sahami Handout #7 CS 06A September, 0 Assignment #: Email/Survey and Karel the Robot Karel problems due: :pm on Friday, October rd Email and online survey due: :9pm on Sunday, October th Part I

More information

Programming in Karel. Eric Roberts and Jerry Cain CS 106J April 5, 2017

Programming in Karel. Eric Roberts and Jerry Cain CS 106J April 5, 2017 Programming in Karel Eric Roberts and Jerry Cain CS 106J April 5, 2017 Once upon a time... Rich Pattis and Karel the Robot Karel the Robot was developed by Rich Pattis in the 1970s when he was a graduate

More information

Assignment #1: and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th due: 11:59pm on Sunday, October 6th

Assignment #1:  and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th  due: 11:59pm on Sunday, October 6th Mehran Sahami Handout #7 CS 06A September, 0 Assignment #: Email and Karel the Robot Karel problems due: :pm on Friday, October th Email due: :9pm on Sunday, October 6th Part I Email Based on a handout

More information

Solutions to Midterm Exam

Solutions to Midterm Exam Nick Troccoli Midterm Solutions CS 106A August 2, 2017 Solutions to Midterm Exam Problem 1: Karel the Robot public class FarmerKarel extends SuperKarel { checkrow(); while (leftisclear()) { movetonextrow();

More information

Using Machine Learning to Model How Students Learn to Program

Using Machine Learning to Model How Students Learn to Program Using Machine Learning to Model How Students Learn to Program (a.k.a. Learning about Learning) Machine Human Mehran Sahami Computer Science Department sahami@cs.stanford.edu Joint work with Chris Piech,

More information

Introduction to Java

Introduction to Java Introduction to Java Announcements Programming Assignment #1 Out: Karel the Robot: Due Friday, January 20 at 3:15 PM. Email: Due Sunday, January 22 at 11:59PM. Section Assignments Posted Check online at

More information

Developing and Reusing Methods

Developing and Reusing Methods Developing and Reusing Methods 3 In Chapter 2, we wrote new services such as turnright and turnaround. These services were very simple, consisting of only a few steps to accomplish the task. In this chapter,

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming Casual Dinner for Women in CS Next Thursday, January 24 in Gates 219 at 6:00PM. Good food, great company, and everyone is invited! RSVP through email link (sent out earlier

More information

Practice Midterm Examination

Practice Midterm Examination Nick Troccoli Practice Midterm CS 106A July 18, 2017 Practice Midterm Examination Midterm Time: Monday, July 24th, 7:00P.M. 9:00P.M. Midterm Location: Hewlett 200 Based on handouts by Mehran Sahami, Eric

More information

Before we start: Any questions on Karel?

Before we start: Any questions on Karel? Control Flow Before we start: Any questions on Karel? Newspaper Karel Any trouble implementing this task? Karel can also repair Karlův! That s fun!... but a robot should get prepared for the dangers of

More information

Karel Prepares for the Olympics! (25 points)

Karel Prepares for the Olympics! (25 points) Karel Prepares for the Olympics! (25 points) Inspired by the events of the 2016 Rio Olympics (where Stanford athletes earned more medals than all but nine countries) as well as the 2018 Men's World Cup,

More information

Practice Midterm Examination #1

Practice Midterm Examination #1 Eric Roberts Handout #35 CS106A May 2, 2012 Practice Midterm Examination #1 Review session: Sunday, May 6, 7:00 9:00 P.M., Hewlett 200 Midterm exams: Tuesday, May 8, 9:00 11:00 A.M., CEMEX Auditorium Tuesday,

More information

Activity The Coordinate System and Descriptive Geometry

Activity The Coordinate System and Descriptive Geometry Activity 1.5.1 The Coordinate System and Descriptive Geometry Introduction North, east, south, and west. Go down the street about six blocks, take a left, and then go north for about 2 miles; you will

More information

Jerry Cain Handout #5 CS 106AJ September 30, Using JSKarel

Jerry Cain Handout #5 CS 106AJ September 30, Using JSKarel Jerry Cain Handout #5 CS 106AJ September 30, 2017 Using JSKarel This handout describes how to download and run the JavaScript version of Karel that we ll be using for our first assignment. 1. Getting started

More information

Laboratory 1: Eclipse and Karel the Robot

Laboratory 1: Eclipse and Karel the Robot Math 121: Introduction to Computing Handout #2 Laboratory 1: Eclipse and Karel the Robot Your first laboratory task is to use the Eclipse IDE framework ( integrated development environment, and the d also

More information

Specification Load Mountain.java and study its method explore(). Complete the Exercises on the next page.

Specification Load Mountain.java and study its method explore(). Complete the Exercises on the next page. Lab07 Exploration Objective Polymorphism. Background Some other variations on creating an object: Robot karel = new Robot(); Robot lisa; lisa = new Robot(); Robot maria; maria = new Athlete(); Robot maria

More information

Slide 1 CS 170 Java Programming 1 Testing Karel

Slide 1 CS 170 Java Programming 1 Testing Karel CS 170 Java Programming 1 Testing Karel Introducing Unit Tests to Karel's World Slide 1 CS 170 Java Programming 1 Testing Karel Hi Everybody. This is the CS 170, Java Programming 1 lecture, Testing Karel.

More information

Question 1: public class BlankKarel extends SuperKarel { public void run() { while (frontisclear()) { walkarow(); move(); } walkarow(); // fencepost }

Question 1: public class BlankKarel extends SuperKarel { public void run() { while (frontisclear()) { walkarow(); move(); } walkarow(); // fencepost } Question 1: public class BlankKarel extends SuperKarel { public void run() { while (frontisclear()) { walkarow(); walkarow(); // fencepost public void walkarow() { turnleft(); while(frontisclear() && leftisblocked()

More information

Using Karel with Eclipse

Using Karel with Eclipse Chris Piech Handout #3 CS 106A January 10, 2018 Using Karel with Eclipse Based on a handout by Eric Roberts and Nick Troccoli Once you have downloaded a copy of Eclipse as described on the course website,

More information

Today. Homework 1 / Test 1 Making decisions in Java If statements If/Else ( Either-or ) statements Logical NOT operator

Today. Homework 1 / Test 1 Making decisions in Java If statements If/Else ( Either-or ) statements Logical NOT operator Today Homework 1 / Test 1 Making decisions in Java If statements If/Else ( Either-or ) statements Logical NOT operator BIT 115: Introduction To Programming 1 Something to Remember: In parameter order,

More information

Asking For Help. BIT 115: Introduction To Programming 1

Asking For Help. BIT 115: Introduction To Programming 1 Asking For Help Start homeworks As Soon As Possible You may post homework questions to Canvas: Please do not cut and paste entire lines of code, but rather ask conceptual questions. You may also ask me

More information

Practice Midterm Examination

Practice Midterm Examination Mehran Sahami Handout #28 CS106A October 23, 2013 Practice Midterm Examination Midterm Time: Tuesday, October 29th, 7:00P.M. 9:00P.M. Midterm Location (by last name): Last name starts with A-L: go to Dinkelspiel

More information

CS 1567 Intermediate Programming and System Design Using a Mobile Robot Aibo Lab3 Localization and Path Planning

CS 1567 Intermediate Programming and System Design Using a Mobile Robot Aibo Lab3 Localization and Path Planning CS 1567 Intermediate Programming and System Design Using a Mobile Robot Aibo Lab3 Localization and Path Planning In this lab we will create an artificial landscape in the Aibo pen. The landscape has two

More information

Karel J Robot Simulator User's Guide Joseph Bergin

Karel J Robot Simulator User's Guide Joseph Bergin Karel J Robot Simulator User's Guide Joseph Bergin March 15, 2005 This guide is Copyright 2005, Joseph Bergin. All rights reserved. The software it describes may be obtained online or from the book's site

More information

Instructor: Craig Duckett

Instructor: Craig Duckett Instructor: Craig Duckett cduckett@cascadia.edu Announcements Assignment 1 Due Lecture 5 by MIDNIGHT I will double dog dare try to have Assignment 1 graded and back to you by Wednesday, January 24 th hopefully

More information

Practice Midterm Examination

Practice Midterm Examination Steve Cooper Handout #28 CS106A May 1, 2013 Practice Midterm Examination Midterm Time: Tuesday, May 7, 7:00P.M. 9:00P.M. Portions of this handout by Eric Roberts and Patrick Young This handout is intended

More information

Debugging with Karel

Debugging with Karel Colin Kincaid Handout #4 CS 106A June 27, 2018 Debugging with Karel Based on a handout by Mehran Sahami, Eric Roberts and Nick Parlante. For a different walkthrough of this problem, please see Colin Kincaid

More information

ASSIGNMENT 3 Classes, Objects and the Robot World

ASSIGNMENT 3 Classes, Objects and the Robot World ASSIGNMENT 3 Classes, Objects and the Robot World COMP-202B, Winter 2009, All Sections Due: Tuesday, March 3, 2009 (23:55) You MUST do this assignment individually and, unless otherwise specified, you

More information

Brainstorming Draft. Draft Stéphane Ducasse To

Brainstorming Draft. Draft Stéphane Ducasse To Brainstorming Draft Draft Stéphane Ducasse stephane.ducasse@free.fr -2006 To April 8, 2006 2 Contents I Joe the Miner 7 1 Bots, Inc. 11 1 Getting Started..................................... 11 2 The Robot

More information

Introduction to Computer Science Unit 2. Exercises

Introduction to Computer Science Unit 2. Exercises Introduction to Computer Science Unit 2. Exercises Note: Curly brackets { are optional if there is only one statement associated with the if (or ) statement. 1. If the user enters 82, what is 2. If the

More information

Practice Midterm Examination #2

Practice Midterm Examination #2 Eric Roberts Handout #34 CS 106A February, 2016 Practice Midterm Examination #2 Review session: Monday, February 8, 6:30 8:00 P.M., NVIDIA Auditorium Midterm exams: Tuesday, February 9, 9:00 11:00 A.M.,

More information

The Maze Runner. Alexander Kirillov

The Maze Runner. Alexander Kirillov The Maze Runner URL: http://sigmacamp.org/mazerunner E-mail address: shurik179@gmail.com Alexander Kirillov This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License.

More information

CS106A Review Session

CS106A Review Session CS106A Review Session Nick Troccoli This document is copyright (C) Stanford Computer Science and Marty Stepp, licensed under Creative Commons Attribution 2.5 License. All rights reserved. Based on slides

More information

c Joseph Culberson Janelle Harms Herb Yang

c Joseph Culberson Janelle Harms Herb Yang c Joseph Culberson Janelle Harms Herb Yang June 22, 2011 Contents Preface ix About.................................. ix Target Audience............................ ix Motivation...............................

More information

Learning Task: New York City

Learning Task: New York City Learning Task: New York City Georgia Department of Education Name Date Mathematical Goals Find the point on a line segment that separates the segments into a given ratio. Essential Questions How can a

More information

A stratum is a pair of surfaces. When defining a stratum, you are prompted to select Surface1 and Surface2.

A stratum is a pair of surfaces. When defining a stratum, you are prompted to select Surface1 and Surface2. That CAD Girl J ennifer dib ona Website: www.thatcadgirl.com Email: thatcadgirl@aol.com Phone: (919) 417-8351 Fax: (919) 573-0351 Volume Calculations Initial Setup You must be attached to the correct Land

More information

CS 201 (Intro. to Computing) Fall 2015 Sabancı University Sample Questions for Midterm 1

CS 201 (Intro. to Computing) Fall 2015 Sabancı University Sample Questions for Midterm 1 CS 201 (Intro. to Computing) Fall 2015 Sabancı University Sample Questions for Midterm 1 Those questions do not imply any favorite subject or question type for the questions in the actual exam Please also

More information

DISTRIBUTING CHANGES TO LOGICAL PARTITIONS

DISTRIBUTING CHANGES TO LOGICAL PARTITIONS 84 Elm Street Peterborough, NH 03458 USA TEL (010)1-603-924-8818 FAX (010)1-603-924-6348 Website: http://www.softlanding.com Email: techsupport@softlanding.com Supplement #31 DISTRIBUTING CHANGES TO LOGICAL

More information

Class IX Mathematics (Ex. 3.1) Questions

Class IX Mathematics (Ex. 3.1) Questions Class IX Mathematics (Ex. 3.1) Questions 1. How will you describe the position of a table lamp on your study table to another person? 2. (Street Plan): A city has two main roads which cross each other

More information

Section Handout #7: Interactors and Classes

Section 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 information

CS 106A July 24, 2017 CS 106A Midterm Exam Question Booklet

CS 106A July 24, 2017 CS 106A Midterm Exam Question Booklet Nick Troccoli Midterm Exam CS 106A July 24, 2017 CS 106A Midterm Exam Question Booklet This is an open-textbook, closed-note exam. You may refer to the Karel the Robot Learns Java reader and the Art &

More information

International Olympiad in Informatics 2012

International Olympiad in Informatics 2012 International Olympiad in Informatics 2012 23-30 September 2012 Sirmione - Montichiari, Italy Competition tasks, day 1: Leonardo's inventions and projects odometer English 1.2 Pebbling odometer Leonardo

More information

Mandatory Exercise 1 INF3110

Mandatory Exercise 1 INF3110 Mandatory Exercise 1 INF3110 In this exercise, you are going to write a small interpreter for a simple language for controlling a robot on a 2-dimensional grid. The language is called ROBOL, a clever acronym

More information

You will learn how to plan an OO application in this lesson. Steps three through six of the process are covered in Lessons B and C.

You will learn how to plan an OO application in this lesson. Steps three through six of the process are covered in Lessons B and C. Planning an Object-Oriented Application LESSON A LESSON A After studying Lesson A, you should be able to: Plan an object-oriented Windows application in Visual Basic 2010 Complete a TOE (Task, Object,

More information

Math 4: Advanced Algebra Ms. Sheppard-Brick B Quiz Review Sections and

Math 4: Advanced Algebra Ms. Sheppard-Brick B Quiz Review Sections and 3B Quiz Review Sections 2.8 2.10 and 3.1 3.6 Key Facts To add vectors, place the tail of one vector (the side without the arrow) at the head of the other vector (the side with the arrow). Draw the vector

More information

Data Types primitive, arrays, objects Java overview Primitive data types in Java

Data Types primitive, arrays, objects Java overview Primitive data types in Java Data Types primitive, arrays, objects Java overview Primitive data types in Java 46 Recap Day 2! Lessons Learned:! Sample run vs. pseudocode! Java program structure: set-up, then real statements, decent

More information

Index Page 1 of 10. Index test size A6. Background. Page 2. Page 3

Index Page 1 of 10. Index test size A6. Background. Page 2. Page 3 Index Page 1 of 10 Index test size A6 Background Page 2 Page 3 Index Page 2 of 10 Assignment 1 Fast Technologies: Background: Fast Technologies[1] (is a manufacturer of solid-state drives (SSD) for desktop

More information

Index Page 1 of 13. Index test size A6. Background. Page 2. Page 3

Index Page 1 of 13. Index test size A6. Background. Page 2. Page 3 Index Page 1 of 13 Index test size A6 Background Page 2 Page 3 Index Page 2 of 13 Assignment 1 Background: Fast Technologies: Fast Technologies[1] (is a manufacturer of solidstate drives (SSD) for desktop

More information

MIT Programming Contest Team Contest 1 Problems 2008

MIT Programming Contest Team Contest 1 Problems 2008 MIT Programming Contest Team Contest 1 Problems 2008 October 5, 2008 1 Edit distance Given a string, an edit script is a set of instructions to turn it into another string. There are four kinds of instructions

More information

Guided tour through SoundPLAN 8.0

Guided tour through SoundPLAN 8.0 Guided tour through SoundPLAN 8.0 You can join this tour with all SoundPLAN 8.0 installations, even with the demo version. Launch SoundPLAN and open a project with the Open project - icon or via the menu

More information

Extending Classes with Services

Extending Classes with Services Extending Classes with Services 2 2 Author s Do-List: add a concept map Extending an existing class to do something new is the fundamental activity of object-oriented programming. Sometimes an existing

More information

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each. I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK 70. a) What is the difference between Hardware and Software? Give one example for each. b) Give two differences between primary and secondary memory.

More information

BIT 115: Introduction To Programming LECTURE 3. Instructor: Craig Duckett

BIT 115: Introduction To Programming LECTURE 3. Instructor: Craig Duckett BIT 115: Introduction To Programming LECTURE 3 Instructor: Craig Duckett cduckett@cascadia.edu Lecture 3 Announcements By now everyone should be up and running with Java, jgrasp, and the Becker Robots

More information

Unit 5 Test 2 MCC5.G.1 StudyGuide/Homework Sheet

Unit 5 Test 2 MCC5.G.1 StudyGuide/Homework Sheet Unit 5 Test 2 MCC5.G.1 StudyGuide/Homework Sheet Tuesday, February 19, 2013 (Crosswalk Coach Page 221) GETTING THE IDEA! An ordered pair is a pair of numbers used to locate a point on a coordinate plane.

More information

1.1. Driving Around Euclid. Goals. Launch 1.1

1.1. Driving Around Euclid. Goals. Launch 1.1 1.1 Driving Around Euclid Goals Review the coordinate system Explore distances on a coordinate grid In this problem, students review the concept of the coordinate grid and are introduced to the idea of

More information

Variables and Classes. In which we over-ride the super class, work with multiple classes, and move towards non-robot based programming

Variables and Classes. In which we over-ride the super class, work with multiple classes, and move towards non-robot based programming Variables and Classes In which we over-ride the super class, work with multiple classes, and move towards non-robot based programming Classes Class extends Class attributes:

More information

Assignment Definition And General Feedback By Michael Panitz at Cascadia Community College (http://www.cascadia.edu)

Assignment Definition And General Feedback By Michael Panitz at Cascadia Community College (http://www.cascadia.edu) For Loops Cory Tsai Taylor Philpott Assignment Definition And General Feedback By Michael Panitz at Cascadia Community College (http://www.cascadia.edu) Table of contents: Quick Summary When To Use (or

More information

NEW BUSINESS 1140 Lake Shore Blvd (L/LSHD)

NEW BUSINESS 1140 Lake Shore Blvd (L/LSHD) NEW BUSINESS 1140 Lake Shore Blvd (L/LSHD) Trust 8002368034, applicant. Application for major zoning relief to relocate a generator more than 2 from the principal structure where generators must be located

More information

CS112 Lecture: Defining Instantiable Classes

CS112 Lecture: Defining Instantiable Classes CS112 Lecture: Defining Instantiable Classes Last revised 2/3/05 Objectives: 1. To describe the process of defining an instantiable class 2. To discuss public and private visibility modifiers. Materials:

More information

Downloaded from

Downloaded from Integers 1.If = Positive integers, = Negative integers, = Zero. Which of following represents integers? (A) (B) (C) (D) all of them 2.The cube of a negative integer is a- (A) Positive integer. (B)

More information

Exercise (3.1) Question 1: How will you describe the position of a table lamp on your study table to another person?

Exercise (3.1) Question 1: How will you describe the position of a table lamp on your study table to another person? Class IX - NCERT Maths Exercise (3.1) Question 1: How will you describe the position of a table lamp on your study table to another person? Solution 1: Let us consider the given below figure of a study

More information

Lecture 8. A series on variable types This episode starring Parameter Variables

Lecture 8. A series on variable types This episode starring Parameter Variables Lecture 8 A series on variable types This episode starring Parameter Variables Declaring an Integer Variable Variable Types Variable Type How it is defined Scope (how long it lasts) Uses Local Variable

More information

Address Management User Guide. PowerSchool 6.0 Student Information System

Address Management User Guide. PowerSchool 6.0 Student Information System User Guide PowerSchool 6.0 Student Information System Released June 2009 Document Owner: Document Services This edition applies to Release 6.0 of the PowerSchool Premier software and to all subsequent

More information

CS112 Lecture: Defining Classes. 1. To describe the process of defining an instantiable class

CS112 Lecture: Defining Classes. 1. To describe the process of defining an instantiable class CS112 Lecture: Defining Classes Last revised 2/3/06 Objectives: 1. To describe the process of defining an instantiable class Materials: 1. BlueJ SavingsAccount example project 2. Handout of code for SavingsAccount

More information

Roadway Alignments and Profiles

Roadway Alignments and Profiles NOTES Module 15 Roadway Alignments and Profiles In this module, you learn how to create horizontal alignments, surface profiles, layout (design) profiles, and profile views in AutoCAD Civil 3D. This module

More information

CS 1301 Exam 3 A Spring 2015

CS 1301 Exam 3 A Spring 2015 CS 1301 Exam 3 A Spring 2015 Name : Grading TA: Integrity: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam

More information

ASSIGNMENT 4 Classes and Objects

ASSIGNMENT 4 Classes and Objects ASSIGNMENT 4 Classes and Objects COMP-202A, Fall 2010, All Sections Due: Friday, November 19, 2010 (23:55) You MUST do this assignment individually and, unless otherwise specified, you MUST follow all

More information

Section 1.3 Adding Integers

Section 1.3 Adding Integers Section 1.3 Adding Integers Objectives In this section, you will learn to: To successfully complete this section, you need to understand: Represent integers as vectors. The integer number line (1.2) Add

More information

CS106X Handout 17 Winter 2015 January 28 th, 2015 CS106X Practice Exam

CS106X Handout 17 Winter 2015 January 28 th, 2015 CS106X Practice Exam CS106X Handout 17 Winter 2015 January 28 th, 2015 CS106X Practice Exam Exam Facts: When: Thursday, February 5 th from 7:00 10:00 p.m. Where: Cubberley Auditorium Coverage The exam is open-book, open-note,

More information

MLEP Intermediate GPS Workshop Exercise Two Using Maps

MLEP Intermediate GPS Workshop Exercise Two Using Maps During this exercise, you will scale coordinates from a map and enter them into the GPS receiver. This requires a ruler (provided) and all calculations require a paper and pencil. During this exercise,

More information

The Preparing for Success Online Mapping Tool

The Preparing for Success Online Mapping Tool The Preparing for Success Online Mapping Tool Baker Polito Administration The Executive Office of Housing and Economic Development and MassGIS Questions & Comments? Please contact MassWorks@state.ma.us

More information

Quarter 1 Practice Exam

Quarter 1 Practice Exam University of Chicago Laboratory Schools Advanced Placement Computer Science Quarter 1 Practice Exam Baker Franke 2005 APCS - 12/10/08 :: 1 of 8 1.) (10 percent) Write a segment of code that will produce

More information

Notes and Observations of the South Napa Earthquake August 24, 2014

Notes and Observations of the South Napa Earthquake August 24, 2014 Notes and Observations of the August 24, 2014 Case Study: Pre- and Post-Quake 3D Laser Scanning Of the Historic Gordon Building By Shari Kamimori October 16, 2014 The Historic Gordon Building is located

More information

Learning Programming with Robots

Learning Programming with Robots Learning Programming with Robots Edited by Otfried Cheong January 26, 2010 1 Robot world We will learn programming by solving problems faced by a robot living in a small grid-like world. Our robot is capable

More information

CS106X Handout 25 Autumn 2012 October 23 rd, 2012 CS106X Midterm Examination

CS106X Handout 25 Autumn 2012 October 23 rd, 2012 CS106X Midterm Examination CS106X Handout 25 Autumn 2012 October 23 rd, 2012 CS106X Midterm Examination This is closed book, closed notes, closed reader, closed everything exam. If you re taking the exam remotely, you can telephone

More information

Address Management User Guide. PowerSchool 8.x Student Information System

Address Management User Guide. PowerSchool 8.x Student Information System PowerSchool 8.x Student Information System Released July 2014 Document Owner: Documentation Services This edition applies to Release 8.0.1 of the PowerSchool software and to all subsequent releases and

More information

Genetic programming. Lecture Genetic Programming. LISP as a GP language. LISP structure. S-expressions

Genetic programming. Lecture Genetic Programming. LISP as a GP language. LISP structure. S-expressions Genetic programming Lecture Genetic Programming CIS 412 Artificial Intelligence Umass, Dartmouth One of the central problems in computer science is how to make computers solve problems without being explicitly

More information

Homework #6 (Constraint Satisfaction, Non-Deterministic Uncertainty and Adversarial Search) Out: 2/21/11 Due: 2/29/11 (at noon)

Homework #6 (Constraint Satisfaction, Non-Deterministic Uncertainty and Adversarial Search) Out: 2/21/11 Due: 2/29/11 (at noon) CS121 Introduction to Artificial Intelligence Winter 2011 Homework #6 (Constraint Satisfaction, Non-Deterministic Uncertainty and Adversarial Search) Out: 2/21/11 Due: 2/29/11 (at noon) How to complete

More information

EE 352 Lab 3 The Search Is On

EE 352 Lab 3 The Search Is On EE 352 Lab 3 The Search Is On Introduction In this lab you will write a program to find a pathway through a maze using a simple (brute-force) recursive (depth-first) search algorithm. 2 What you will learn

More information

Chapter 1: First Steps 1

Chapter 1: First Steps 1 Chapter 1: The first steps Topic: Programming Page: 1 Chapter 1: First Steps 1 Start Eclipse. Import the Eclipse project scenarios-chapter-1. Go to the src/scenario01 subfolder. The scenario includes a

More information

Use GIS Web Applications: Address and Intersections Text Query

Use GIS Web Applications: Address and Intersections Text Query Use GIS Web Applications: Address and Intersections Text Query Fiscal Year: 2003-2004 Project: Census/GIS Web Applications Status Last Updated: 28 March 2005 Last Updated By: MMiller Overview In order

More information

Introduction to Fall 2008 Artificial Intelligence Midterm Exam

Introduction to Fall 2008 Artificial Intelligence Midterm Exam CS 188 Introduction to Fall 2008 Artificial Intelligence Midterm Exam INSTRUCTIONS You have 80 minutes. 70 points total. Don t panic! The exam is closed book, closed notes except a one-page crib sheet,

More information

Creative Computing Course Syllabus 1 semester for High School (110 contact hours)

Creative Computing Course Syllabus 1 semester for High School (110 contact hours) CodeHS Creative Computing Course Syllabus 1 semester for High School (110 contact hours) Course Overview and Goals The Creative Computing course is a first year computer science course introducing the

More information

All program statements you write should be syntactically correct. Partial credit is not guaranteed with incorrect use of syntax.

All program statements you write should be syntactically correct. Partial credit is not guaranteed with incorrect use of syntax. With Solutions in Red CS110 Introduction to Computing Fall 2012 Section 2 Exam 1 This is an open notes exam. Computers are not permitted. Your work on this exam must be your own. Answer all questions in

More information

Quick Guide for Excel 2015 Data Management November 2015 Training:

Quick Guide for Excel 2015 Data Management November 2015 Training: http://pfw.edu Quick Guide for Excel 2015 Data Management November 2015 Training: http://pfw.edu/training Excel 2016 Data Management AutoFill and Custom Lists AutoFill 1. Select the range that contains

More information

Enumerations. Fundamentals of Computer Science

Enumerations. Fundamentals of Computer Science Enumerations Fundamentals of Computer Science Outline Avoiding magic numbers Variables takes on a small set of values Use descriptive names instead of literal values Java enumerations Using in a switch

More information

LECTURE 3. Compiler Phases

LECTURE 3. Compiler Phases LECTURE 3 Compiler Phases COMPILER PHASES Compilation of a program proceeds through a fixed series of phases. Each phase uses an (intermediate) form of the program produced by an earlier phase. Subsequent

More information

ASSIGNMENT 4 Records and Objects

ASSIGNMENT 4 Records and Objects ASSIGNMENT 4 Records and Objects COMP-202B, Winter 2010, All Sections Due: Wednesday, March 31, 2010 (23:55) You MUST do this assignment individually and, unless otherwise specified, you MUST follow all

More information

Examples of Tasks from Course 1, Unit 4

Examples of Tasks from Course 1, Unit 4 Examples of Tasks from Course 1, Unit 4 What Solutions are Available? Lesson 1: page 258, Modeling Task 1; page 260, Modeling Task 4; page 261, Organizing Task 1; page 271, Modeling Task 2; page 272, Modeling

More information