13 Pages

Recitation14

Course: CS 180, Fall 2008
School: Purdue
Rating:
 
 
 
 
 

Word Count: 648

Document Preview

and Generics Type Safety Recitation 4/24/2009 CS 180 Department of Computer Science, Purdue University Announcement Project 8 due Wed, April 29 at 10 pm. All questions on the class newsgroup. Generics Motivation In Java, array elements must all be of the same type: int[] counts = new int[10]; Hence, arrays are type safe: The compiler will not let you put the wrong kind of thing into an array A collection, such...

Register Now

Unformatted Document Excerpt

Coursehero >> Indiana >> Purdue >> CS 180

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.
and Generics Type Safety Recitation 4/24/2009 CS 180 Department of Computer Science, Purdue University Announcement Project 8 due Wed, April 29 at 10 pm. All questions on the class newsgroup. Generics Motivation In Java, array elements must all be of the same type: int[] counts = new int[10]; Hence, arrays are type safe: The compiler will not let you put the wrong kind of thing into an array A collection, such ...
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:

Glasgow Caledonian University - CD - 143
T he L ear ning Self:Effective U se of Technology in L ear ning Envir onmentsH ar una T adaCD-143 Technologies of the Self Day 4: "The Learning Self" Tufts University Fall 2002Over view Goals for the use of computers in learning Background o
Minnesota - LIND - 1199
Gregg Lind, 12/01/2003, Stat 8101, Page 135.1Sunday Version111/24 Question 1pProve the following result: Suppose X 1 , X2 , . . . is a sequence of random variables such that X n c p where c is a constant and n . If g is continuous at
Minnesota - ADAC - 0008
ApEc8212: Econometric Analysis II Professor Paul Glewwe Spring 2007 Handed out: January 22, 2007 Due: January 31, 2007 Homework 1 Question 1 Let x be a 1 K random vector, and let q be a random scalar. Suppose that q can be expressed as q = q* +e, whe
Minnesota - ADAC - 0008
ApEc8212: Econometric Analysis II Professor Paul Glewwe Spring 2007 Handed out: April 13, 2007 Due: April 23, 2007 Homework 9 Question 1 Obtain a particular solution of: (i) yt 5yt-1 6yt-2 = 2(6)t (ii) yt + 5yt-1 + 2yt-2 = 18 + 6t + 8t2 Question 2
Minnesota - ADAC - 0008
ApEc8212: Econometric Analysis II Professor Paul Glewwe Spring 2007 Handed out: April 20, 2007 Due: May 2, 2007 Homework 10 Question 1 Consider the following time series process: yt = 1 + 2xt + 3yt-1 + t, Assume that both x and y are weakly stationar
Minnesota - BURC - 0050
Trigonometry TestNo Calculators. All angular measures are in radians.Name_Question 1. (6 points) Find 3 different trigonometric functions, a(x), b(x), and c(x), that each describe this graph. Write your answers in the spaces provided. a(x)=__ b(
Minnesota - CSCI - 4011
CSci 4011, Spring 2009Homework 4 due: February 17, 20091. Let G = (V, , R, S) where V = {A, B, S, C}, = {a, b}, R = {S - AB|BA, B - CBC|b, A - CAC|a, C - a|b}. (a) What is the language L(G)? (b) Use the construction in Lemma 2.21 to convert G to
Minnesota - MATH - 5707
SOLUTION OF THE HEAWOOD MAP-COLORING PROBLEM* BY GERHARD RINGEL AND J. W. T. YOUNGSUNIVERSITY OF CALIFORNIA (SANTA CRUZ)Communicated by Saunders Mac Lane, March 25, 1968One of the most fascinating problems in mathematics is the four-color conjec
Wisc Stevens Point - JFREY - 977
JENNA FREY : 715-305-5256 S188 HWY C : SPENCER, WI 54479SKILLS: Adobe Photoshop Adobe Illustrator Adobe InDesign QuarkXpress Dreamweaver Flash ACHIEVEMENTS: 2nd Place in the student cards/invitations category for Etiquette Dinner Steal this Idea Co
Wisc Stevens Point - KBROO - 103
Practicum 3: Teaching Fraction Concepts and Assessing Probabilistic Thinking Introduction and Rationale for Lesson: During the assessment lesson the girls had some difficulties with identifying the part and the whole especially when asked to i
Minnesota - PHELP - 008
TUDY GUIDE FOR MAP QUIZ S There are two maps provided here. The first is a map of the US in 1854 (above); the second is a map showing US territorial expansion by mid century (see reverse). One of these maps will appear on the map quiz. On the
Sveriges lantbruksuniversitet - CS - 383
Prolog ProgrammingA First CoursePaul Brna March 5, 2001Abstract The course for which these notes are designed is intended for undergraduate students who have some programming experience and may even have written a few programs in Prolog. They ar
Minnesota - IE - 5112
Wyndor Glass CoProduction Time per Batch Production time Hours available in per week, Hours Plant Product 1 Product 2 1 1 0 4 2 0 2 12 3 3 2 18 profit per batch $3,000.00 $5,000.00x 1=0, x 2=9X 1 4 2X 212Maximize 3 x 15 x 2 x1 x 3 =4 2 x2 x4
BYU - P - 127
Quiz #10Select the letter for the most correct answer to each question. (There is only one correct answer per question.) 1. A two solar mass protostar is just about to move onto the main sequence. This star will most likely have a main sequence spec
Wisc Stevens Point - BKUMM - 428
Language Lifeguards: A Race to Save the Parts of Speech! Students will practice their language and grammar skills by racing, in order to create sentences using verbs, nouns, and end punctuation.Grade Level: Grades 2 6Materials: Task cards (Verbs
Wisc Stevens Point - ACHRI - 389
Lesson Plan #1 "When did Dinosaurs Exist? Jill Wittmann, Becca Ederer, Autumn Albrecht, and Ben Hanson Science Grade level: 4th Rationale: The purpose of this lesson is to introduce students to the dinosaur unit. A main idea in this less
UNC Charlotte - COE - 1202
ENGR 1202 Introduction to Civil Engineering Spring 2008Test 2 Format and InstructionsTest 2 April 25, 2008 5 problems on 4 pages, 100 points total, open book and notes, show all calculations for partial credit, start at 9:30 AM, end at 10:20
Minnesota - PSY - 1001
Fall 2004 Psy 1001 Exam 2 Form A1. When people overestimate the influence of internal, personal factors and underestimate the role of external, situational factors in interpreting another person's behavior: a. b. c. d. they are showing a self-servin
Wisc Stevens Point - CPS - 910
UW-Stevens Point 910 Add-on Certification in Health EducationSummer 2009: HLED 703 - 3 cr. HLED 705 - 3 cr.FINANCIAL AID QUESTIONS:What is the cost of graduate credit at UWSP?UWSP tuition for Summer 2009: CREDITS 1 2 Graduate 386.72 771.44 3 115
CSU LA - CS - 370
MPI Programming Quick Start, v. 0.1b Author: Dimitri Kosturos dkostur@calstatela.edu Draft: April 3, 2003 Modified: May 6, 2003Revised: April 30, 2004 by Long LoiAcknowledgements First and foremost, thank you to Dr. Raj Pamula for allowing us to c
Wilfrid Laurier - P - 641
AComparativeAnalysis ofWebandP2PTrafficNaimulBasher,AniketMahanti, AnirbanMahanti,Carey Williamson,andMartinArlittWWW2008,BeijingINTRODUCTIONInthepastasignificantproportionofInternet trafficwasfromWebapplicationsusingHTTP. Webtrafficisdistingu
FAU - GLY - 4241
Acids and BasesGLY 4241 - Lecture Fall, 20081AcidsAcids are substances that dissociate to donate protons (Brnsted definition) General Formula: H2n+1On+2Lone Pair Acceptor Lewis definition of an acid is any substance that accepts a lone pai
UMBC - CMSC - 202
Notes on Interfaces The length of this seemed about right. Spent a couple of minutes addressing the C+ issues of multiple inheritances and how this mechanism tries to fix them We should include enums (here? Somewhere else) rather than talk about cons
UMBC - CMSC - 202
Notes for Console I/O This lecture gives the students some simple tools with which to create some applications in lab and Project1 . We choose not to cover DecimalFormat, MoneyFormat, etc, since the printf( ) provided with Java 5 pretty much makes th
Purdue - EE - 255
McGill - PHYSICS - 339
` x s f e z x zm g x v x ~ z ~ fm z ` x s zu vm m i zu zm xm z xx i f x v sx zm s x s Iq{fEVq'GEeTqthihiGE{Gfn5E{qUGGyVTo'EG}GgQEtIVwEhiX$mctnVXVyXVVf s z ` mx m i f xmu f f s iu x x x g xmu x vm z z ~m hi f x xu x s i z e xm
Cleveland State - EEC - 510
EEC 510: Linear systems / Lecture 108/26/2008EEC 510 Linear Systems Lecture 1: Introduction to Linear Systems1. Frequency-domain and time-domain Linear systems can be mathematically described in one of two domains: frequency domain and time doma
CSU Bakersfield - ACCT - 303
CHAPTER 2An Introduction to Cost Terms and PurposesBasic Cost Terminology Cost sacrificed resource to achieve aspecific objective Actual Cost a cost that has occurred Budgeted Cost a predicted cost Cost Object anything of interest for w
CSU Bakersfield - ACCT - 303
CHAPTER 10Determining How Costs BehaveCost Functions A cost function is a mathematicalrepresentation of how a cost changes with changes in the level of an activity relating to that costTo accompany Cost Accounting 12e, by Horngren/Datar/Fost
CSU Bakersfield - ACCT - 303
CHAPTER 15Allocation of Support Department Costs, Common Costs, and RevenuesAllocating Costs of a Supporting Department to Operating Departments Supporting (Service) Department providesthe services that assist other internal departments in the
CSU Bakersfield - ACCT - 303
CHAPTER 17Process CostingJob-Costing and Process Costing: Opposite Ends of a ContinuumJob-Costing Systems Distinct, identifiable units of a product or service Examples: Custom-made machines, HousesProcess-Costing Systems Masses of identical o
Indiana South Bend - C - 151
C151MultiUserOperatingSystemsIntroduction to HTMLWebServer Each web server has a specific name for the main directoryof the web pages. Each user of that server can create a directory with that name in their account and that will be the home of
Purdue - CPT - 310
June 2006Midyear IT Employment OutlookAs a technology executive, you require access to the most current employment information. The Robert Half Technology Midyear IT Employment Outlook is a timely synopsis of hiring trends based on our quarterly s
UMBC - PHYSICS - 320
Physics 340Laboratory #3TIME-VARYING SIGNALSTextbook Readings: Diefenderfer and Holton, Chapters 2 and 31 ObjectivesYou will use three AC-voltage-measuring devices to study time-varying signals: a volt-ohm meter (VOM), a digital multimeter (D
Ohio State - EXAMS - 130
Name: Circle your class starting time: 9:30 am 1:00 pm 2:30 pm 5:30 pm MATH 130 Test 2 (form B) Autumn 2007 Time: 55 minutes Max : 100 Instructions: This test has 10 questions on 6 pages. Write your final answer to each question in the space provided
Penn State - MIA - 5078
CAD Project Due April 30, 5:00PMAs the wrap-up activity for SolidWorks, you are to select and construct a 3-D object or product. Your personal CAD project will be submitted in hard copy and as part of your personal web page for EDSGN100 on April 30
UMBC - CMSC - 331
Chapter History of 2 ProgrammingLanguagesCMSC 331. Some material 1998 by Addison Wesley Longman, Inc.1History Early History : The first programmers The 1940s: Von Neumann and Zuse The 1950s: The First Programming Language The 1960s: An Exp
Harvard - LAW - 337
aMERICA AND THE BSE SCARE:NEAR MISSES, FUTURE LESSONSby Kannon K. Shanmugam The public buys its opinions as it buys its meat, or takes in its milk, on the principle that it is cheaper to do this than to keep a cow. So it is, but the milk is more
Harvard - LAW - 153
~G~k0Th~rd~ ~. ~x~,erDELAYS IN THE PROCESSTHE APPROVAL OF OLESTRA AS A FOOD ADDITIVE:by Steven Benerofe1TABLE OF CONTENTS INTRODUCTION 1 BACKGROUND OF OLESTRA . 4 A. OLESTRA . 4 B. SUNI'4ARY OF FDA APPROVAL OF OLESTRA . . 6 III. THE EFFECT
Harvard - LAW - 790
Microsoft Word 10.0.6612;The Project BioShield Act of 2004: An Innovative FailureJanet Temko Class of 2006 May 2006Submitted in satisfaction of both the course requirement and the third-year written work requirement1Abstract On July 21, 200
Harvard - LAW - 185
FDA POLICYMAKING IN LIGHT OF SCIENTIFIC UNCERTAINTY: THE BITTERSWEET APPROVAL OF ASPARTAME by Vikas Arora (I.D. # 403-81-368) Food and Drug Law Professor Peter B. Hutt January24, 19971Table of ContentsI. Introduction 1 II. The Long Road: History
W. Alabama - ECE - 602
M augmenting pathEdges in bold, are in the matching MM-augmenting path has been used to create a new matching M' which has Cardinality one more than in M.Bipartite Graph1 X 2 3 4 5 6Y123456Bipartite Graph1 X S 2 3 4 5 6 S'|N
W. Alabama - ECE - 204
General Runge Kutta Formulas:k1 = hf (xi; yi ) 1 1 k2 = hf (xi + h; yi + k1) 2 2 1 1 k3 = hf (xi + h; yi + k2) 2 2 k4 = hf (xi + h; yi + k3) 1 1 1 1 yi+1 = yi + k1 + k2 + k3 + k4 6 3 3 6 Example 1 Lets illustrate a dynamical system using h, with a
UMBC - WEEK - 170
Week #4programs vs data structuresdata structures queues stacks linked lists treesqueuesqueues as arraysqueue functionscircular queuesstacksstack functionsstack operationsChap 20 (Pages 531-546)
UMBC - WEEK - 170
Week #11Reading/Writing Fixed Size Objects - disk input - disk output - fread() / fwrite()Reading Writing Variable Size Objects - disk input - disk outputDirect Access - Fixed Size ObjectsDirect Access - Variable Size ObjectsDisk Resident
W. Alabama - ECE - 204
clear all%Script P6_2_1%%Solving Lower Hessenberg Systemn = 6;A = triu(randn(n,n),-1)b = A'*ones(n,1)x = HessTrans(A,b);
W. Alabama - ECE - 427
Solution to Midterm question 3a LIBRARY IEEE; USE IEEE.std_logic_1164.ALL; ENTITY mttest IS port (ld1, ld2, st1, st2: IN std_logic; BUS: INOUT std_logic_vector (31 downto 0); clk, clear, load1, load2: in std_logic; d1, d2: in std_logic_vector (31 dow
W. Alabama - ECE - 427
Allan Hancock College - PHYS - 3071
Introduction"Phun" comparison between various languagesInterpreted languagesMatlab Python Common Lisp PerlCompiled languagesC FortranTutorial 4: Compiled versus Interpreted Languages. Typeset in L EX using prosper p.1/1 ATMatlabdiffuse2m.
Neumont - CSC - 1977
R.C.SFRANKLA REINE95Alex FrankandAppellantHer Majesty The Queen1977RespondentMay 10 1977LaskinMay 31PresentSpencePigeonC.J and Martland Judson Ritchie Dickson Beetz and de Grandpr JJON APPEAL FROM THE SUPREME COURT OF A
W. Alabama - ECE - 602
Project 50% Mark break down Presentation (10%) 1. Content: poor motivation 1 2 3 4 excellent motivation 2. Problem Definition: not clear 1 2 3 4 Very Clear 3. Experimental Results: inadequate results 1 2 3 excellent results 4. Future Work: unclear 1
W. Alabama - ECE - 602
Project 50% Mark break down Presentation (10%) 1. Content: poor motivation 1 2 3 4 excellent motivation 2. Problem Definition: not clear 1 2 3 4 Very Clear 3. Experimental Results: inadequate results 1 2 3 excellent results 4. Future Work: unclear 1
Harvard - LIB - 175
color we have been using r, g, b. why what is a color? can i get all colors this way? how does wavelength fit in here can i use r, g, b for simulation of reflection what is gamma. and other exciting things. the answer we will discover that m
UMBC - CSEE - 202
CMSC 202 Computer Science II for Majors Spring 2002 Sections 0101-0104 Ms. Susan MitchellCMSC 202 1Course Prerequisites CMSC 201, Computer Science (grade of B or better) MATH 151, Calculus I (grade of C or better)CMSC 2022CMSC Gateway Warn
UMBC - CSEE - 202
ADTs, Encapsulation, and Information HidingCMSC 202, Version 2/021Abstraction A mechanism to control complexity Complexity due to interconnections between software components; i.e., the dependence of one portion of code on another The abili
Texas Pan American - MATH - 1340
UMBC - LEC - 202
Script started on Thu Apr 8 11:01:34 1999No match[40]retriever[edelman] CC -n32 test4.C"test4.C", line 13: error(1132): class "ifstream" has no member "is_open" if (!testf.is_open() { ^1 error detected in the compilation of
Arizona - MSE - 350
Linear AlgebraAuthor: Date:R. G. Erdmann 9/26/2007NoteTo resize the text while viewing these slides in Firefox, press the Ctrl - or Ctrl = key combinations.Linear Algebra Scipy and numpy have powerful linear algebra functionality. Vector o
SUNY IT - TEL - 581
Survey of Information Assurance LAB #1 IDSAim: To detect the intrusion on the internet connection using air snare software. Required observations: a) Be able to detect any unfriendly MAC address on the local network. b) The screenshot of an alert
UMBC - CSEE - 341
CMSC341 Data StructuresLecture 1 Sept 6, 2000AdministriviaDescription prereqs grading responsibilities Syllabus Web page www.cs.umbc.edu/courses/undergraduate/341/fall001ProjectsProjects grading due dates honesty submittal: cs341-04
UMBC - CSEE - 341
CMSC 341C+ & Makefile ReviewObject RelationsUses a An object uses another object by calling a public method of that objectHas a Implemented using composition (aggregation) i.e. object Foo has an object Bar as a data memberIs a An object b