10 Pages

lab7

Course: CIS 110, Fall 2009
School: UPenn
Rating:
 
 
 
 
 

Word Count: 354

Document Preview

CIS110-203 Intro to Computer Science Lab #7 TA: Catherine Stocker Mentor: Jay Fiddelman University of Pennsylvania 18 October 2007 Today s Agenda Sit in your pair programming groups! General Stuff Inheritance <a href="/keyword/java-api/" >java api</a> Lab Work Monitors Turn em off General Stuff How was the lab work? Let s talk about reuse Inheritance Create one class...

Register Now

Unformatted Document Excerpt

Coursehero >> Pennsylvania >> UPenn >> CIS 110

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
CIS110-203 Intro to Computer Science Lab #7 TA: Catherine Stocker Mentor: Jay Fiddelman University of Pennsylvania 18 October 2007 Today s Agenda Sit in your pair programming groups! General Stuff Inheritance <a href="/keyword/java-api/" >java api</a> Lab Work Monitors Turn em off General Stuff How was the lab work? Let s talk about reuse Inheritance Create one class and reuse it s methods and variables in it s subclasses. Most common way this is done is : Object class default equals(Object obj), toString(), etc Note that equals takes an Object -- polymorphic <a href="/keyword/java-api/" >java api</a> Application Programming Interface A description of how to use a pre-built set of data structures (Strings, etc) methods/functions (equals()) for building a software application i.e. A promise that there are certain data structures and methods that will work in the specified way You use API s for every homework (javadocs) <a href="/keyword/java-api/" >java api</a> Perfect for all your class and method needs When you downloaded the JDK (Java Development Kit), you were downloading all of those classes described in the API Lucky for you, there were people who already created a String class for you to use and they thought of lots of things for it to do and they tested it and documented it and now all you have to do is look it up. Goes with today s theme of reusing code! <a href="/keyword/java-api/" >java api</a> Explore: Wanna know about what you can do to strings? &gt; String a = &quot;hello&quot; &gt; String b = &quot;hello&quot; &gt; a == b false &gt; a.equals(b) True //why? &gt; a.length() 5 &gt; a.substring(3,5) &quot;lo &gt; a.toUpperCase() &quot;HELLO&quot; &gt;a &quot;hello&quot; Lab Work Break into the same groups, different pairs Betterbot: http://www.seas.upenn.edu/~cis1xx/projects/Botworld/betterbot/assignment.html String Doctor: http://www.seas.upenn.edu/~cis1xx/projects/API/StringClass/StringDr/ Loopingbot: http://www.seas.upenn.edu/~cis1xx/projects/Botworld/loopingbot/assignment.html Later Penn Engineers Without Borders Professor Bernard Amadei Founding President, Engineers Without Borders-USA Co-founder, Engineers Without Borders-International October 18 (Thursday) 6:00 pm 8:00 pm Berger Auditorium (Basement of Skirkanich Hall) Drinks and snacks will be provided For more info, contact: Giselle Dutcher, Penn EWB PR Committee &lt;gisellem@seas.upenn.edu&gt;
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Penn State - CMG - 5102
Resume Personal Data: Charlie Gatz 1902 Barker Hill Rd Herndon, VA 20370 (Home) 1-766-555-9078 (Cell) 1-766-555-2390 CMan4@lionsnet.com Education High school degree from Bishop OConnell High School in Arlington, Va Bachelor of Arts, Pennsylvania Stat
Penn State - CLR - 384
Lifting a Lightweight Object Introduction : The task of lifting objects is a common physical demand in both the home and the workplace. The action of lifting can include picking up a dropped pencil at the office, taking out the trash, heaving large b
Penn State - PT - 384
Lifting a Lightweight Object Introduction : The task of lifting objects is a common physical demand in both the home and the workplace. The action of lifting can include picking up a dropped pencil at the office, taking out the trash, heaving large b
UPenn - CIT - 591
Simple Text I/OApr 25, 2009java.util.Scanner Java finally has a fairly simple way to read input First, you must create a Scanner objectTo read from the keyboard (System.in), do: Scanner scanner = new Scanner(System.in); To read from a
UPenn - CIT - 597
Ajax on RailsApr 25, 2009Ajax in .rhtmlIn the &lt;head&gt; section of your .rhtml page, do: &lt;%= javascript_include_tag &quot;prototype&quot; %&gt; The above code adds several files to your .rhtml pageIncluded is JavascriptHelper, which lets you write Ruby
UPenn - CSE - 391
Introduction to Python ICIS 391 Introduction to Artificial Intelligence Fall 2007This Set of Notes Installing &amp; Running Python Names &amp; Assignment Sequences: Lists, Tuples, and Strings MutabilityCIS 391 Fall 20072Python Python is an
UPenn - CSE - 39904
CSE 399-004: Python ProgrammingLecture 2: Data, Classes, and Modules January 22, 2007 http:/www.seas.upenn.edu/~cse39904/Administrative thingsTeaching assistantOther announcements Brian Summa (bsumma @ seas.upenn.edu) Oce hours in Moore 100
UPenn - CSE - 39904
AnnouncementsCSE 399-004: Python ProgrammingLecture 5: Course project and Exceptions February 12, 2007 Still working on grading Homeworks 3 and 4 (and 2.) Homework 5 will be out by tomorrow morning I want to finish with Homework 4 before I han
UPenn - CSE - 39904
CSE 399-004: Python ProgrammingLecture 12: Decorators April 9, 2007 http:/www.seas.upenn.edu/~cse39904/Announcements Projects (code and documentation) are due:April 20, 2007 at 5pm There will be informal presentations to help give me asense
UPenn - CSE - 39904
AnnouncementsCSE 399-004: Python ProgrammingLecture 06: with-statements and threads February 19, 2007 http:/www.seas.upenn.edu/~cse39904/ Projects Feedback on proposals by next week No need to start on these right now Due date: Friday April 2
UPenn - CIS - 500
CIS 500 Software Foundations Fall 2002 16 October HW5?Administrivia Exams will be graded over the weekendCIS 500, 16 OctoberSimply typed lambda-calculus with booleans (T-T RUE) (T-FALSE) (T-I F) 1CI
UPenn - CIS - 500
'$CIS 500 Software Foundations Fall 2004 6 October&amp;CIS 500, 6 October1%'Midterm 1 is next Wednesday$Todays lecture will not be covered by the midterm. Next Monday, review class. Old exams and review questions on webpage. No recita
UPenn - CIS - 500
'CIS 500 Software Foundations Fall 2005 Induction; Operational Semantics&amp;CIS 500, Induction; Operational Semantics1'AnnouncementsReview recitations start this week. You may go to any recitation section that you wish. You do not need to
UPenn - CIS - 500
CIS 500 Software Foundations Fall 2003 15 OctoberCIS 500, 15 October1PlansWhere weve been: Inductive denitions abstract syntax Proofs by structural induction Operational semantics The lambda-calculus T yping rules and type soundnessCIS 500,
UPenn - CIS - 500
CIS 500 Software Foundations Fall 2004 More on inductionCIS 500, More on induction1Reasoning about evaluationCIS 500, More on induction2Induction principlesWe've seen three definitions of sets and their associated induction principles: O
UPenn - CIS - 500
'$'AnnouncementsCIS 500 Software Foundations Fall 2005 September 14I will be away September 19-October 5. I will be reachable by email. Fastest response-cis500@cis.upenn.edu No office hours 9/19, 9/26, 10/3 Guest lecturers for the next 3 week
UPenn - CIS - 500
$'AnnouncementsCIS 500 Software Foundations Fall 2004 18 OctoberHomework 5 will be posted todaydue in one week. Normal office hours/recitation schedule. No good date for midterm. Looks like 12/20 1:30-3:30 is the best.IS 500, 18 October1
UPenn - CIS - 500
'$'CIS 500 Software Foundations Fall 2005 2 November Recursion&amp; 'CIS 500, 2 November1%&amp; $'CIS 500, 2 November2Recursion in ExampleIn , all programs terminate. (Cf. Chapter 12.) Hence, untyped terms like omega and fix are not ty
UPenn - CSE - 39904
CSE 399-004: Python ProgrammingLecture 10: Functional programming, Memoization March 26, 2007 http:/www.seas.upenn.edu/~cse39904/Announcements Should have received email about meeting times Length: ~15 minutes (try to show up on time!) Purpose
UPenn - CSE - 39904
CSE 399-004: Python ProgrammingLecture 1: Introduction to Python January 8, 2007 http:/www.seas.upenn.edu/~cse39904/CSE 399-004: Python ProgrammingLecture 1: Welcome to the Circus January 8, 2007 http:/www.seas.upenn.edu/~cse39904/Trivia: Pytho
UPenn - CSE - 39904
AnnouncementsCSE 399-004: Python ProgrammingLecture 4: Assorted topics February 5, 2005 No homework this week (time for well-deserved break!) Normal office hours for both Brian's Homework 1 grades sent out earlier today Everyone did fine! Al
UPenn - CSE - 39904
CSE 399-004: Python ProgrammingLecture 3: Scoping and Classes January 22, 2007 http:/www.seas.upenn.edu/~cse39904/Announcements Brian Summa is out of town this week So no office hours on Thursday, Friday Bulletin board is set up Use this to
UPenn - CIS - 120
CSE 120 Final exam - April 30, 2007Name:Student ID: (from your PennCard) Email Lab:(circle one)201 W 1:00 202 W 2:30 203 R 12:00 204 R 1:30@seas.upenn.edu This exam text, code handout, the Java Backpack Reference Guide, and your brain are the
UPenn - CIS - 120
Introduction to Programming Languages and TechniquesIteratorsclass LinkedList&lt;E&gt; { private class Node { public E element; public Node next;Quizpublic Node( E element, Node n ) { this.element = element; this.next = n; } public E get(int i) { /
UPenn - CIS - 39904
Home Work 3CIS 399-004 Introduction to PythonAdam AvivSubmissionYou are required to submit at least two les: (1) a python le, pwd checker.py and (2) a README le. Place all code based solutions, clearly marked and commented, in the python le. Wh
Nevada - ECON - 458
ECON 458 International Trade and Finance Exam 2Professor Parker Fall 2003Answer the following questions in a large blue book. Dont be too wordy, of course, but make sure that you clearly answer each and every question. 1. (25%) The United States
Nevada - EC - 458
EC 458/658 Exam 2Fall 2002Answer the following questions in a large blue book. Don't be too wordy, of course, but make sure that you clearly answer each and every question. You have until 2:25PM. 1. (15%) Suppose there are only two countries trad
Nevada - APEC - 202
Chapter 4Institutional BreakdownUNR APEC 202 Spring 08 M. Kobayashi1Surfing Example: Harvesting WavesTotal happiness of surfers0S* Min # surfers not to waste any a es an wavesSMAX Max # surfers the spot can take# surfersUNR APEC 20
Nevada - APEC - 472672
KEY #3 APEC 472/6722/23/07Re-label (using words in place of the letters) and complete the graph above.1.Assume it is a model of competitive businesses. What is measured by the line segments AC and BK? (mark ALL that apply) a. fixed costs b. mar
Nevada - APEC - 350
RECO 250 Homework 3due Tuesday, Feb 10, 20091. Which image above displays the actual data with the most integrity, and why? 2. Consider g = f(k) = 3 + 2k + 3k2 , defined for k [0,100] a) what is the independent variable? b) what is the domain? c
Nevada - APEC - 100
1.80 1.60 1.40 1.20APEC 100 sp08 first double-oral auction 2/8/08, Market #2Supply (MC) 1.00 TA price 0.80 0.60 0.40 0.20 0.00 1 3 5 7 9 11 13 15 17 19 21 23 25 Demand (MB)
Nevada - CS - 474
Graphics and Image ProcessingW. Newman EditorUse of the Hough Transformation To Detect Lines and Curves in PicturesRichard O. Duda and Peter E. Hart Stanford Research Institute, Menlo Park, CaliforniaHough has proposed an interesting and compu
UPenn - SYS - 502
!!!#!!# ! ! ! ! !#!!!! #!#! #!!!#!Example of Extrapolation
UPenn - SYS - 502
Bivariate Fit of V By h0.23 0.22 0.21 0.2 0.19 0.18 0.17 0.16 0.15 0.14 0.13 0 5000 10000 15000 20000 25000 30000 35000 40000Vh Polynomial Fit Degree=2Polynomial Fit Degree=2MANGANESE VARIOGRAM DATA (default bandwidth)
UPenn - SYS - 502
Penn State - LAE - 166
REQUIRED DISCLOSUREBenchmarkZiff-Davis' WinBench 97 Version 1.1 Release Candidate 1CDROM ControllerSymbios 825CDROM Controller RAM? KBCDROM DrivePLEXTOR CD-ROM PX-6XCSCDROM Software CacheCDFS CacheCDROM Software Cache Size1238 KBCoPro
UPenn - SYS - 502
Sheet1 11.625360.0673180.037918-75.006540.1261 11.64220.0836180.052838-75.0268540.12075 11.620880.0366890.063073-75.0172540.11195 11.454240.0436810.070704-75.0362540.11115 11.334990.0498350.032755-74.9713540.09715 11.620880.0171540.111728-75.0140.105
UPenn - ECON - 404
ANSWER KEY TO QUIZ 1, ECON4, SECTION 2 Prepared by Yi LIU January 25, 2004 1. Add: Depreciation Indirect business tax Other items (including: business transfer payment, surplus of government enterprises, and statistical discrepancy) Subtract: Net rec
UPenn - ECON - 404
Name:QUIZZ 1: Econ 4, Section 2Jos-V e ctor R os-Rull January 22, 2004 Please answer the following 13 questions for 50 points. Be as BRIEF as you can. You have 40 minutes. 1. (7 points) State the items that have to added or subtracted (specify whi
Nevada - OFR - 962
CHAPTER 12 DELINEATION OF MINERAL RESOURCE ASSESSMENT TRACTS AND ESTIMATES OF NUMBERS OF UNDISCOVERED DEPOSITS IN NEVADADennis P. Cox, Steve Ludington, Byron R. Berger, Barry C. Moring, Maureen G. Sherlock, Donald A. Singer, and Joseph V. TingleyI
UPenn - UPM - 7100
More Records - Penn's undergraduate yearbooksSINE MORIBUSThe University RecordVol . Ill.-No . 1. UNIVERSITY OF PENNSLVANIA, THURSDAY, JUNE 26, 1873 . SALVE ! N one of the lovely country-seats of &quot; Merri e England,&quot; as the visitor steps from the
Nevada - UNAE - 110
Penn State - BIOL - 230
Photosynthesis: Energy from sunlight is harvested to make chemical energy I Two phases of photosynthesis A Light cycle-photophosphorylation 1 Light dependent electron transport chain and ATP synthesis B Dark cycle-Calvin cycle 1 Assimilation of CO2 i
Penn State - EDG - 100
EDSGN 100 Fall 2008 Design ProjectPenn State Solar Decathlon Borton-Lawson October 6, 2008Borton-Lawson Overview 130 Employees 20 Years in Business Founded by 2 PSU grads 3 Locations in Northeastern and Central PA 4 Divisions: Facility Engin
UPenn - ANTH - 133
Anthropology 133 Native Peoples and the Environment Spring 2004 PROFESSOR: Dr. Clark Erickson 435 University Museum cerickso@sas.upenn.edu 215-898-2282 DESCRIPTION: Native Peoples and the Environment. Freshman Seminar; Writing Across the University (
Michigan - ME - 599
ME 599-1 Homework 2 Solutions1. a. Define the overall length of the spring as x (which is initially equal to 1 = 150 mm), and the left and right sides of the triangle as 2 = 55 mm and 3 = 130 mm, respectively. Also define the angle between the botto
Nevada - B - 113
APPENDIX 4:4040AR/39AR GEOCHRONOLOGYalso much lower K contents compared to the other samples. Radiogenic yields either increase across the entire spectrum or reach a maximum prior to descending at intermediate to high temperatures (Figs. A4-1,
Nevada - CS - 679
An Introduction to Hidden Markov ModelsL. R. .Rabiner B. H. JuangThebasictheoryofMarkovchains has been known to mathematicians and engineers close to 80 years, but it is for only in the past decadethat it has been applied explicitly to problems in
Penn State - STAT - 200
1991$seniorityFullProfGender3500017.000Female4300027.001Male2600015.000Female5110023.001Male4920032.501Male4490019.501Male3440013.000Male4060017.001Female3520017.500Male4060022.001Male2940014.000Male438
Penn State - ME - 461
D 5 4 &amp; %Q 5 T 79@ I BR P8 4f2 4 ! C SA &quot; @ % 5 Q 2 p D $ %100i92 G 2 @ U $ 4UD $C Se@ #@ %Q @ U2 S&amp; &amp;#G $ 6I e@ Q %Q 5 %E $ 5 7 7 7 $ 5 UI #7 P5 4h#G &amp;R f2 Q 5 5 6I e@ Q % %A % 7 7 %8 4E 5 @ %8 7 5 % I g 4I QE 5 &amp;c $ 4 %@ @ c $ 4
UPenn - CIS - 610
Logarithms and Square Roots of Real MatricesJean Gallier Department of Computer and Information Science University of Pennsylvania Philadelphia, PA 19104, USA jean@cis.upenn.edu May 2, 2008Abstract. In these notes, we consider the problem of nding
UPenn - PSYC - 172
Penn State - MTC - 197
AED 489 LESSON PLAN Your Name: Jennifer Weyandt, Laura Nulf, Michael Cherry Unit Title: Instant Messages: Stories and the World We Live In Lesson Title: Neighborhood Boogie-Woogie: Neighborhood Maps Inspired By Mondrian Number of Students: 11 Age: 7
Penn State - BJS - 372
Bradley J. Shively 10/30/2006 Professor Xu SRA 111Home Security Lab: Part 2 Process Profile and AnalysisPrimary Applications and System SoftwareThe organization of my primary storage, C:\, is fairly basic. In the root of the drive, the significa
Penn State - KINES - 497
Assignment #3: Body Image and Exercise Dependence Student Name: _ Date: _Assignment: (a). Take the Exercise Dependence Scale (EDS), Drive for Thinness Subscale (DTS) of the Eating Disorders Inventory-2, and the Body Areas Satisfaction Scale (BASS) o
Penn State - BUB - 1929
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/01/29High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth72 Rank (1=Warmest, 34=
Penn State - BUB - 1935
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/24/35High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth84 Rank (1=Warmest, 40=
Penn State - BUB - 1942
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/06/42High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth: ::78 Rank (1=Warm
Penn State - BUB - 1934
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/19/34High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth93 Rank (1=Warmest, 39=
Penn State - BUB - 1933
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/17/33High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth81 Rank (1=Warmest, 38=
Penn State - BUB - 1941
Sheet1 STATE COLLEGE, PENNSYLVANIA DAILY WEATHER SUMMARY - Latest Complete Day [Midnight - Midnight LT] -07/24/41High Temperature Low Temperature Mean Temperature Rain or Liquid Equivalent Snow and/or Ice Pellets Snow Depth: ::87 Rank (1=Warm