# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

2 Pages

Course: CS 109, Fall 2009
Rating:

Word Count: 163

#### Document Preview

Unit 1 Java 11 Key, Odds 1. 0 3. 0 5. if/else 7. if(valin == 0) return 0; else return valin + mySum(valin 1); 9. public static int mymethod(double mynum) { if(mynum &lt; 2) return 0; else return 1 + mymethod(mynum / 2); } 11. 1/3 + + 1 13. cba 15. the subtraction 17. the division 19. loops 21. 17 divided by 5, integer arithmetic = 3 5 divided by 17, integer arithmetic = 0 23. public class Assignment11Q3Prog...

Register Now

#### Unformatted Document Excerpt

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.
Unit 1 Java 11 Key, Odds 1. 0 3. 0 5. if/else 7. if(valin == 0) return 0; else return valin + mySum(valin 1); 9. public static int mymethod(double mynum) { if(mynum < 2) return 0; else return 1 + mymethod(mynum / 2); } 11. 1/3 + + 1 13. cba 15. the subtraction 17. the division 19. loops 21. 17 divided by 5, integer arithmetic = 3 5 divided by 17, integer arithmetic = 0 23. public class Assignment11Q3Prog { public static void main(String[] args) { MyTerminalIO myterminal = new MyTerminalIO(); double mynumber; double firstguess; double answer; 2 myterminal.println("What number would you like to find the square root of?"); mynumber = myterminal.getDouble(); myterminal.println("What's your guess first for the square root?"); firstguess = myterminal.getDouble(); answer = Assignment11Q3Class.mySquareRoot(mynumber, firstguess); myterminal.println("To a precision no less than a tenth, the square root is: " + answer); myterminal.println("The square of this approximation is: + (answer * answer)); } } import java.lang.Math; public class Assignment11Q3Class { public static double mySquareRoot(double ...

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:

UPenn - OPIM - 910
Simplex Method Continued1Todays Lecture Reviewof the simplex algorithm. Formalizing the approach Degeneracy and Alternative Optimal Solutions Is the simplex algorithm finite? (Answer, yes, but only if we are careful)2LP Canonical Form =
UPenn - OPIM - 910
! !&quot; #% &amp; ! ( ! )&quot; #\$ ! ! '! * ! ( !#+ , . * 1 2 1! , &amp; &amp; . * &amp; * ! . ! 0 / ! * ! / 0 !&quot;! ! * ! / / &amp;&amp; / ! 2 &amp; 0 / #% ! #+' #\$ ! 1&amp; 3 ! 4 &quot; ! , / !. * ' ! ! ! #+ !! '
UPenn - ESE - 0809
INTRO TO ESE SENIOR DESIGN 2008-2009INSTRUCTOR TEAM: Kenneth R. Laker Vukan R. Vuchic Philip D. Farnumhttp:/www.ese.upenn.edu/seniordesign/1ESE Senior Design Overview Introduction of the Instructor Team What is ESE Senior Design? Attributes
Mich Tech - ED - 3510
ED 3510 (2 credits) &amp; ED 3511 (1 credit)Communicating ScienceCourse SyllabusInstructor:~Fall Semester 2008Joan Chadde, Education Program Coordinator Western U.P. Center for Science, Mathematics &amp; Environmental Education Office: 105 Dillman
UPenn - ESE - 0809
Senior Design Projects: Sample Ethical AnalysesEE / SpringIntroductionWhat follows are three sample ethical analyses to help you in the preparation of your senior design project report. Please note that these are not meant to be style guides - c
UPenn - ESE - 0809
Ethics &amp; Engineering DesignDr. Nathan Ensmenger University of Pennsylvania nathanen@sas.upenn.eduWhy Ethics?Why Ethics?Engineering is importantWhy Ethics?Engineering is important Ethics are essential to a professionWhy Ethics?Enginee
UPenn - ESE - 0708
INTRO TO ESE SENIOR DESIGN 2008-2009INSTRUCTOR TEAM: Kenneth R. Laker Vukan R. Vuchic Philip D. Farnumhttp:/www.ese.upenn.edu/seniordesign/1ESE Senior Design Overview Introduction of the Instructor Team What is ESE Senior Design? Attributes
Mich Tech - ED - 3510
ED3510 &amp; ED3511 Communicating ScienceLesson Plan Assessment - RubricGrading Scale (40 points possible )A = 36-40 points AB = 32-35 points B = 29-31 points BC = 26-28 points C = 23-25 points CD = 20-22 points D = 18-19 points F = less than 18 poi
Mich Tech - ED - 3510
Presenter's Name: Activity Title/Target Age Group: School/Date:Grade:ED 3510 &amp; ED 3511: Communicating Science ~ Presenter Evaluation (20 points)Conduct 1-2 presentations of your lesson at family science night. Your presentation should meet these
Mich Tech - CS - 3621
CS3621 Quiz 2 Solutions - Fall 20051CS3621 Quiz 2 Solutions (Fall 2005) 75 points1. B-splines Suppose we have a clamped B-spline curve of degree 4 defined by 8 control points P0 to P7 and 13 knots 0, 0, 0, 0, 0, 1/4, 1/2, 3/4, 1, 1, 1, 1, 1. Not
Mich Tech - CS - 3621
CS3621 Quiz 1 Solutions: Fall 20051CS3621 Quiz 1 (Fall 2005) Solutions1. Do the following problems. Only writing down your result is sufficient. (a) [8 points] Rewrite the following second degree equation, which represents a quadric surface, to
Mich Tech - CS - 3621
CS3621 Midterm Solution Fall 20051CS3621 Midterm Solution (Fall 2005) 150 points1. Geometric Transformation (a) [5 points] Find the 2D transformation matrix for the reection about the y-axis transformation (i.e., x goes to x and y goes to y). I
Virgin Islands - ECON - 371
Economics 371 Practice Problem Set 3 (ANSWERS)Professor H.J. Schuetze1. a. Assume that there are no migration costs. What is the average number of efficiency units among immigrants? Is the immigrant flow positively or negatively selected?Income
UPenn - CIT - 591
Error messagesApr 26, 2009Types of errorsThere are three general types of errors:Syntax (or &quot;compile time&quot;) errorsSyntax errors are &quot;grammatical&quot; errors and are detected when you compile the program Syntax errors prevent your program f
Mich Tech - PH - 2400
PH2400 Quiz 3Biju R. PatlaConsider the following wave function for the ground state of a particle in a one dimensional box (x) = x(1 - x) 0 0x1 elsewherea. Is the wave function normalized? If not, normalize it. b. Find the expectation value o
Mich Tech - PH - 2400
PH2400Spring 2001Page 1NamePH2400Some Constants:Exam IIISpring 2001 = 3.14159 h = 6.626 10-34 Js hc = 1240 eVnm c = 3.00 108 m/s RH = 1.0974 107 m-1 = 13.606 eV/hc 1 eV = 1.6022 10-19 J 1 amu = 931.48432 MeV/c2 = 1.66054 10-27 kg
Mich Tech - CS - 6461
Reusable Anonymous Return ChannelsPhilippe GolleStanford University Stanford, CA 94305, USAMarkus JakobssonRSA Laboratories Bedford, MA 01730, USApgolle@cs.stanford.edumjakobsson@rsasecurity.comABSTRACTMix networks are used to deliver mes
Mich Tech - CS - 6461
Xor-Trees for Efficient Anonymous Multicast and ReceptionSHLOMI DOLEV Ben-Gurion University of the Negev and RAFAIL OSTROVSKY Telcordia TechnologiesWe examine the problem of efficient anonymous multicast and reception in general communication netw
Mich Tech - CS - 5461
Capacity of Ad Hoc Wireless NetworksJinyang Li Charles Blake Douglas S. J. De Couto Hu Imm Lee Robert MorrisM.I.T. Laboratory for Computer Science jinyang, cblake, decouto, hilee, rtm @lcs.mit.eduAbstractEarly simulation experience with wireles
East Los Angeles College - COMS - 12200
1.1 Questions1COMS12200/COMSM0109 WorksheetDan Page http:/www.cs.bris.ac.uk/home/page/ January 7, 20091.1 Questions1. a. Describe how N-type and P-type MOSFET transistors are constructed using silicon and how they operate as switches. b. Draw
Mich Tech - FW - 4220
Wetland EcologyFW 4220- Wetlands 4220-Wetland Ecology Zonation Wetland succession Vegetation samplingZonationWetland vegetation is typically found in distinct zones. Many wetland plants have strict preferences for environmental conditions. M
Mich Tech - EE - 5240
Midwestern State University - POLS - 4933
POLS 3583 Latin American Politics Research Paper Assignment Description The primary objective of this course is to familiarize students with politics in the Latin American Region while developing critical thinking and problem solving skills. To help
East Los Angeles College - COMS - 12200
1.1 Questions1COMS12200/COMSM0109 WorksheetDan Page http:/www.cs.bris.ac.uk/home/page/ January 7, 20091.1 Questions1. Imagine you are on the design team for a new 16-bit processor. The ISA for the processor includes specications for: 16 gene
UPenn - SAS - 053004
75 1 600 8 0 0 36 0 100 0 0 0 0 0
Midwestern State University - CS - 4143
Control StructuresProgram of control Sequentialexecution Selection structure The if and if/else statements Switch statement The goto statement Repetitionstructure The while and do/while loops (chapter 5) The for and foreach loops (ch
UPenn - M - 509
Ruminations on exterior algebra 1.1 Bases, once and for all. In preparation for moving to differential forms, let's settle once and for all on a notation for the basis of a vector space V and its dual V . These are fairly standard notations. For V ,
Midwestern State University - CS - 4143
Per l Chapt er 5 par t 2r efer ences / nest ed st r uct ur esRefer ences 3r d kind of scalar value r elat ed t o point er s (addr esses) used t o make complex dat a st r uct ur esH ar d r efer ences A var iable st or ing a r efer ence which
Whitman - M - 350
TaxonomyWe can use Kohonen's Map (or SOM) as a way of organizing taxonomic data. For example, suppose that we want to see if we can organize animals by certain characteristics. We will categorize 16 animals based on 13 characteristics. The character
UPenn - MATH - 660
Homework 7: Isometric ImmersionsDifferential Geometry I due Thursday, Nov. 131. Chapter 6, problems 1, 2, 6, 8, 11. 2. Determine all solutions to the equation2 2 (1 + fy )fxx - 2fx fy fxy + (1 + fx )fyy = 0of the form f (x, y) = F (r) with r =
UPenn - MATH - 104
Math 104-006Chapter 10.4: Models for Population GrowthOutline For Today Models for Population GrowthLaw Of Natural Growth The law of natural growth assumes that the rate of change of the population is proportional to the size of the population
Midwestern State University - PHYS - 2644
Chapter 24 Capacitance, Dielectrics, Electric Energy StorageCopyright 2009 Pearson Education, Inc.Units of Chapter 24 Capacitors Determination of Capacitance Capacitors in Series and Parallel Electric Energy Storage Dielectrics Molecular D
UPenn - MATH - 360
Connected Components and Path-connected ComponentsIn this notes, we prove that any subset of metric (topological) space can be written as disjoint union of connected components. We also proves the similar result for the path-connected case. Let A b
Piedmont - MATH - 410
Spring 2009MontgomeryMath 410Simple MotionSuppose a rocket, tilted at an angle of 40 , is fired from the ground with an initial velocity of 30 meters per second. When and where will the rocket hit the ground? How high in the air does the rock
Piedmont - MATH - 212
Spring 2009MontgomeryInverse SubstitutionWhat to do about integrals that have a2 x2 on the inside? We have seen with integrals containing a square root and some combination of a2 and x2 , a inverse substitution will make the integral possible
Piedmont - MATH - 213
Math 213 Spring 2009MontgomeryLab 3One advantage of using vectors is that there are all kinds of vector properties to explore: 1. Create two vectors in the plane v = v1 , v2 and w = w1 , w2 (with specific v1 , v2 , w1 , w3 ). (a) Draw the two v
Laurentian - CS - 330
Marking Schedule:Tuesday:1:00 Caleigh1:30 Cameron2:00 Garrett2:30 (someone from Tuesday besides Caleigh, Cameron)3:45 TrentThursday:
Laurentian - PHASE - 330
USERASSIGN 21 R1ASSIGN 22 R2ASSIGN 23 R3SYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS CreateProcessSYS ShowProcessTableSYS CreateProcessSYS S
Midwestern State University - HS - 1312
Slide 1RADT 2123 Radiographic ImagingBeth L. Veale', M.Ed.Midwestern State University_ _ _ _ __ _ _Slide 2The Prime Factors in Exposure Calculation Objectives: Analyze relationships of technical factors and their effects on exposure calcula
Midwestern State University - HS - 1413
Slide 1_ _ ABDOMENBy: Linda Pearson_ _ _ _ __Slide 2_ ABDOMINOPELVIC CAVITYAbdominal cavityDiaphragm Superior aspect of the bony pelvis_ _ __ _ _ _Pelvic cavityBony pelvisRectum &amp; sigmoid of Lg. Intestine Urinary bladder Reproductive
UPenn - AMCS - 609
AMCS 609 Problem set 7 due March 26, 2009 Dr. EpsteinReading: Read Chapters 15 and 16 in Lax, Functional Analysis. Standard problem: The following problem should be done, but do not have to be handed in. 1. Let M : X Y be linear. Show that the rang
UPenn - M - 115
Math 115Calculus, Part II with probability and matrices. (4h. 1 c.u.) Functions of several variables, partial derivatives, multiple integrals; introduction to linear algebra and matrices with applications to linear programming and Markov processes.
Midwestern State University - PHYS - 1533
The Terrestrial PlanetsA Study in Contrasts Mercury in many ways is similar to Earth's moon. Venus and Mars both have properties more like Earth's, as well as drastic differences. Earth - vibrant, teeming with life. Venus - uninhabitable infern
Mich Tech - MEEM - 4200
Determine the thermal efficiency, the required steam flow rate, and the moisture at the turbine exhaust for a reheat/regenerative cycle which is to produce 200 MW at the turbine coupling if the turbine throttle conditions are 15.5 MPa and 540 C; rehe
UPenn - M - 509
Math 509 Assignment 6Dr. DeTurck Due Thursday, March 26Let's start with a couple of problems from the current College Math Journal. 1. Let f be a function defined on an open interval I containing the interval [a, b], and such that f (x) 0 for al
Mich Tech - MEEM - 4150
EXAM 1MEEM 4150Oct. 6th, 20041. (a) Show the non-zero stress components on the A,B, and C faces of the cube. Use the coordinate system that is given only. xx = 80MPa ( T ) yx = 30 MPa zx = 0 xy = 30 MPa yy = 0 zy = 70MPa xz = 0 yz = 7
Mich Tech - MEEM - 4405
M. VableNotes for finite element method: Intro to FEM 2-DFEM in two-dimension1 Strain energy density: U o = - [ xx xx + yy yy + xy xy ] 2 xx ~ Define: { } = yy xy Generalized Hooke's law Plane stress (All stresses with subscr
Laurentian - ASSIGNMENT - 115
^^^^.^^^.^^.S.^^.^^.^^^^^^:^^:^^^:P:^^:^^:^^^^^^
Laurentian - ASSIGNMENT - 115
^^^^#:#^^^#^^:#.:.:.#:^^:#.S.:.*.:.S.#:^^:#.:.#:^^:#::#:^^:#:#:^^:#:#:#:^^:#.D#.#:^^:#D.#:^^^:#.#:^^:#.#.#.#:^^#.#^^#:#.#:#^^^:.:^^:.:^^#P#^
Mich Tech - MEEM - 4150
EXAM 1MEEM 4150Oct. 7th, 2003yAnswers are at of this exam. 1. (a) Show the non-zero stress components on the A,B, and C faces of the cube. Use the coordinate system that is given only. xx = 80MPa ( T ) yx = 30 MPa zx = 0 xy = 30 MPa yy
Mich Tech - MEEM - 4150
EXAM 21. (a)y 10 mmMEEM 4150(b)50 mm y 10 mmNov. 19th, 2003(c)A 20mm 38o Steel(a) Determine Iyz for the L shaped cross-section shown in Fig. (a).I yy = 0.463 ( 10 ) mm I zz = 1.013 ( 10 ) mm6 6 44100 mm zzC5 mm 25 mm 10 mm 60 m
Mich Tech - MEEM - 4150
EXAM 11.MEEM 4150 dv d x ADec. 18th, 2000Using energy methods find the reaction force at A and the slope of the beam at A in terms of E, I, w, and L.RA = -=-w lb/ft A x L ft2. A thin walled open cross-section with a uniform thickness
Mich Tech - MEEM - 4150
EXAM 21.6 in 1 in 1.25 in y 1 in z C 6 in 1 inMEEM 4150Nov. 18th, 2004(a) Determine Iyz for the cross-section shown.Iyz = -1 in(b) The internal bending moments on a cross-section shown were determined to be M y = 20 kN m and M z = ( 2
Mich Tech - MEEM - 4150
FinalMEEM 4150Dec. 16th, 20031. A thin beam cross-section of uniform thickness t is shown in Fig. 1. Determine the shear center location with respect to point A. Assume t a .aFig. 1y aFig. 2wL Iyy = 8.74a3tzAIzz = 7.25 a3t 2a -7a
Mich Tech - MEEM - 4150
M. VableIntermediate Mechanics of Materials: Chapter 4Composite Structural Members Assumption 8 on material homogenity across the cross-section is not valid. The learning objective of this chapter is: Understand the incorporation and implication
Mich Tech - MEEM - 4150
EXAM 11.MEEM 4150Dec. 15th, 2004Using energy methods find the reaction force at A and the slope of the beam at A in terms of E, I, w, and L.w lb/ft A xL ftL ft2. A thin walled open cross-section with a uniform thickness `t' is shown. As
Mich Tech - MEEM - 4150
EM 440Exam 2May 4th, 20001 A rigid plate is pivoted at point C. After the load P is applied the temperature of bar B is observed to decrease by 50oF. Determine the axial stress in bar A and the deformation of bar B. The area of cross-section of
Mich Tech - EE - 5223
EE 4223/5223 - Homework #2 - Due Mon January 28th, 2009, 10amH1.2)A 3-phase 480-Volt circuit has a positive-sequence Y-connected source and supplies a delta-connected load. The impedance of the lines between the source and load is negligible. The
Mich Tech - EE - 421
Course MemoTo: From: Date: 13 October, 1998 Professor SchulzSubject: Recommended A/D convertersTask: Determine A/D converters from two manufacturers that will operate at a sampling rate of at least 40kHzwith a dynamic range of approximately 100
Mich Tech - EE - 421
EE421: Digital Signal Processing Quiz 6-a Name: (please write your last name on the back of this sheet) Score:1. A signal, sampled at a rate of 240 Hz, is plagued by 180 Hz interference and its harmonics. Design a digital notch lter H(z) that remov
Mich Tech - EE - 421
Course MemoTo: From: Date: 13 October, 1998 Professor SchulzSubject: Recommended A/D convertersTask: Determine A/D converters from two manufacturers that will operate at a sampling rate of at least 40kHzwith a dynamic range of approximately 100