2 Pages

02-syllabus

Course: CS 106A, Fall 2011
School: Stanford
Rating:
 
 
 
 
 

Word Count: 322

Document Preview

Sahami CS Mehran 106A Handout #2 September 26, 2011 CS 106A Syllabus (subject to change at any time by the management) Monday September 26 Welcome to CS106A Administrivia Meet Karel the Robot October 3 Wednesday 28 Programming with Karel Control structures in Karel Friday 30 Problem-solving in Karel Program decomposition The idea of an algorithm Read: Karel, Chapters 1-3 Read: Karel, Chapters 4-6 5 7...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> Stanford >> CS 106A

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.
Sahami CS Mehran 106A Handout #2 September 26, 2011 CS 106A Syllabus (subject to change at any time by the management) Monday September 26 Welcome to CS106A Administrivia Meet Karel the Robot October 3 Wednesday 28 Programming with Karel Control structures in Karel Friday 30 Problem-solving in Karel Program decomposition The idea of an algorithm Read: Karel, Chapters 1-3 Read: Karel, Chapters 4-6 5 7 Introduction to Java Variables, values, and types Classes and objects Arithmetic expressions The Program class hierarchy Read: Java, Chapters 1-2 10 Methods Using parameters Read: Chapter 5 17 Read: Chapter 3 12 Read: Chapter 6 19 Read: Chapter 9.4 Read: Chapter 10.110.4 26 String manipulation Objects and memory Problem-solving with strings More on parameter passing Read: Chapter 8.5 Read: Chapter 4 Due: Assignment #1 14 More parameters Pseudorandom numbers The RandomGenerator class The acm.graphics package More graphics The collage graphics model Event driven programming Read: Chapter 9.1-9.3 Due: Assignment #2 24 Control statements Boolean expressions Read: Chapter 7 Due: Assignment #3 Creating classes Stylistic expectations Using javadoc 21 Character data The Java String class Read: Chapter 8.1-8.4 28 File processing Exception Chapter handling Read: 12.4 2 Monday 31 Wednesday November 2 Arrays and ArrayList Due: Assignment #4 14 Java collections framework The HashMap class Iterators Object-oriented design Swing interactors The JComponent hierarchy Action listeners Read: Chapter 13 16 Read: Chapter 10.510.6 18 Graphical user interfaces Interactors Read: Chapter 10.710.8 21 Midterm recovery day (No class) Thursday, November 3rd 7:00-9:00pm: Midterm 11 9 Debugging strategies 4 Arrays and ArrayList (continued) Read: Chapter 11.1-11.8 7 Friday Component listeners Data structure design Due: Assignment #5 23 Sorting and searching Algorithmic analysis Read: Chapter 12.1-12.3 25 Thanksgiving recess (No class) Thanksgiving recess (No class) Thanksgiving recess (No class) Be happy to be on break... Prepare to eat a lot... Recover from over-eating... 28 30 Programming in the large Software engineering December 2 Social networks Additional topics Due: Assignment #6 7 5 Life after CS106A (is there any?) Review for Final Exam Standard Java The main method 9 Dead Day: our token attempt at Dead Week (No class lecture; sections meet as usual) Due: Assignment #7 (No late days on Assign. #7) Final Examination: Thursday, December 15th, 12:15pm to 3:15pm
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:

Stanford - CS - 106A
Mehran SahamiCS 106AHandout #3September 26, 2011Course Placement InformationBased on a handout by Eric RobertsComputers are everywhere in todays world. The more you know about computers, thebetter prepared you will be to make use of them in whateve
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #4September 26, 2011Computer Science and the Stanford Honor CodeBased on a handout by Eric RobertsSince 1921, academic conduct for students at Stanford has been governed by the HonorCode, which reads as follows:THE STAN
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #5September 28, 2011Downloading EclipseParts of this handout were written by Justin Manus and Brandon Burr and then wantonly updated by your loving CS106A staff .In CS106A. well be using Stanfords customized version of Ec
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #7September 28, 2011Assignment #1: Email and Karel the RobotKarel problems due: 3:15pm on Friday, October 7thEmail due: 11:59pm on Sunday, October 9thBased on a handout by Eric RobertsPart IEmailEmail is really the pre
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #8September 28, 2011Submitting WorkBased on a handout by Eric RobertsThis handout provides a little more background on submitting work. Remember that allassignments are submitted electronically through Eclipse. Whether a
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #9September 30, 2011Example Karel ProblemsPortions of this handout by Eric RobertsRunning a steeple chaseIn class, we examined a SteepleChase program that allows Karel to run a "SteepleChase" (like a hurdles race, but w
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #10October 3, 2011Section Handout #1Karel the RobotBased on a handout by Eric RobertsThis week in section, your first priority is to meet your section leader and discover whatsections in CS 106A are all about. Your secti
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #10AOctober 3, 2011Solutions for Section #1Based on a handout by Eric Roberts/** File: UnitedNationsKarel.java* -* The UnitedNationsKarel subclass builds houses at corners* marked by rubble.*/import stanford.karel.*;
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #11October 7, 2011Simple Programming PatternsBased on a handout by Eric RobertsThis handout summarizes some of the most common programming patterns that you willencounter in Java. Each of these patterns is covered in mor
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #12October 7, 2011Control StatementsBased on a handout by Eric RobertsThis handout offers some additional notes on Javas control statements (described morefully in Chapter 4 of the textbook) that emphasize the important
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #13October 7, 2011Assignment #2: Simple Java ProgramsDue: 3:15pm on Monday, October 17thYour Early Assignment Help (YEAH) hours:7:30pm-9:30pm, Monday, October 10th in Braun Lecture Hall (in Mudd Chemistry Bldg.)Portions
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #14October 10, 2011MethodsBased on a handout by Eric RobertsChapter 5 introduces the concept of methods in Java, which are analogous to those youcreated in Karel. In contrast to the topics of expressions and control stat
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #15October 10, 2011Section Handout #2Simple JavaPortions of this handout by Eric Roberts1. The Fibonacci sequenceIn the 13th century, the Italian mathematician Leonardo Fibonaccias a way to explainthe geometic growth of
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #15AOctober 12, 2011Solutions for Section #2Portions of this handout by Eric Roberts and Jeremy Keeshin1. The Fibonacci sequence/** File: Fibonacci.java* -* This program lists the terms in the Fibonacci sequence up to
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #16October 12, 2011Examples of Programs Using Random NumbersPortions of this handout by Eric Roberts/** File: RollDice.java* -* This program simulates rolling some number of dice until* the maximal value on the all the
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #17October 12, 2011Coding StyleMuch of this handout was written by Nick Parlante and Eric Roberts, then edited for our own clandestine purposes.When writing a paper, you can have well-crafted, correctly spelled sentences
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #19October 17, 2011Assignment #3Breakout!Due: 3:15pm on Wednesday, October 26thBased on a handout by Eric RobertsYour job in this assignment is to write the classic arcade game ofBreakout, which was invented by Steve Wo
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #20October 17, 2011Section Handout #3Parameters, Random Numbers, and Simple GraphicsPortions of this handout by Eric Roberts and Patrick Young.1. True/False questionsFor each of the following statements below, indicate
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #20AOctober 19, 2011Solution to Section #3Portions of this handout by Eric Roberts and Patrick Young.1. True/False questionsa) The value of a local variable named i has no direct relationship with that of avariable name
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #25October 24, 2011Strings ExamplesBased on examples by Eric Roberts and Patrick Young.Checking for palindromespublic boolean isPalindrome(String str) cfw_for(int i = 0; i < str.length() / 2; i+) cfw_if (str.charAt(i)
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #26October 24, 2011Strings and CiphersBased on a handout by Eric Roberts.Cryptography, derived from the Greek word ("cryptos") meaning hidden, is thescience of creating and decoding secret messages whose meaning cannot b
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #27October 26, 2011Assignment #4 HangmanDue: 3:15pm on Monday, November 7thYour Early Assignment Help (YEAH) hours:8:00pm-10:00pm, Wednesday, Oct. 26th in Braun Lecture Hall (Mudd Chemistry Bldg.)Based on a handout by E
Stanford - CS - 106A
Mehran SahamiCS106AHandout #28October 26, 2011Practice Midterm ExaminationMidterm Time: Thursday, November 3rd, 7:00P.M.9:00P.M.Midterm Location (by last name):Last name starts with A-E:Last name starts with F-M:Last name starts with N-R:Last na
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #29October 26, 2011Solutions to Practice MidtermPortions of this handout by Eric Roberts and Patrick YoungProblem 1: Karel the Robot (20 points)/* File: InnerBorderKarel.java */import stanford.karel.*;public class Inne
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #30October 31, 2011Section Handout #5: Files, ArrayLists, and ClassesPortions of this handout by Eric Roberts1. Word CountWrite a program WordCount that reads a file and reports how many lines, words, andcharacters appe
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #30ANovember 2, 2011Solution to Section #5Portions of this handout by Eric Roberts1. Word count/** File: WordCount.java* -* Counts the characters, words, and lines in a file.*/import acm.program.*;import java.io.*;
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #31October 31, 2011Exam StrategiesBased on a handout originally written by Julie Zelinski and Chris PiechThe exams in the CS106 courses can be challenging and even a bit intimidating. Hopefully youhave been keeping up in
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #32October 31, 2011ArrayLists Reference for HangmanBased on a handout by Patrick YoungThis handout gives you a quick reference for some of the concepts related to ArrayListsthat may be useful to you for implementing Part
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #33November 7, 2011Solutions to Midterm ExamProblem 1: Karel the Robot/* File: MountainKarel.java */import stanford.karel.*;public class MountainKarel extends SuperKarel cfw_public void run() cfw_goToMountain();climb
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #34November 7, 2011DebuggingThanks to Eric Roberts and Nick Parlante for portions of this handout.Much of your time as a computer programmer will likely be spent debugging. Thisphenomenon is best described by a quotation
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #35November 7, 2011Section Handout #6: More Arrays and HashMapsPortions of this handout by Eric Roberts1. How Prime!In the third century B.C., the Greek astronomer Eratosthenes developed an algorithm forfinding all the
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #35ANovember 9, 2011Solutions to Section #61. How Primepublic class SieveOfEratosthenes extends ConsoleProgram cfw_private static final int UPPER_LIMIT = 1000;public void run() cfw_boolean[] resolved = new boolean[UPPE
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #36November 7, 2011Assignment #5 Yahtzee!Due: 3:15pm on Wednesday, November 16thYour Early Assignment Help (YEAH) hours:8:00pm-10:00pm, Monday, Nov. 7th in Braun Lecture Hall (Mudd Chemistry Bldg.)Based on a handout wri
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #37November 9, 2011CS 106A Graphics ContestSubmission deadline: 11:59pm on Saturday, December 3rdBased on a handout by Eric RobertsThe graphics programs you write using the acm.graphics package tend to be moreexciting t
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #38November 14, 2011Example programs showing interactor usageFile: InteractiveDrawFace.java/** File: InteractiveDrawFace.java* -* This program draws GFaces on the screen, but allows the* use to modify their size and co
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #39November 14, 2011Section Handout #7: Using InteractorsBased on a handout by Eric Roberts1. Using InteractorsThe purpose of this problem is to give you some practice using the kind of interactors youneed for the NameS
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #39ANovember 16, 2011Solution to Section #7Based on a handout by Eric Roberts1. Using Interactors/ File: BoxDiagram.java/ This program allows the user to create a set of boxes with labels/ and then drag them around in
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #40November 16, 2011Assignment #6NameSurferDue: 3:15pm on Wednesday, November 30thYEAH hours: 8:00pm-10:00pm, Wednesday, Nov. 16th in Braun Lecture HallThe NameSurfer assignment was created by Nick Parlante and further r
Stanford - CS - 106A
Mehran SahamiCS 106AHandout #41November 16, 2011MusicShop Program (ComponentListener Example)File: MusicShop.java/** File: MusicShop.java* -* This program handles the data management for a music* shop, showing which albums are carried and how man
Iowa State - PHYSICS - 112
CLASS EXERCISE # 1 - 13 June 20051. (2 points) Determine the B and C components of a vector of magnitude 4.7 m in a direction 35 west of north. Be sure to include the correct signs! The angle of this vector is ) oe 90 35 oe 125 The B component is E cos )
Iowa State - PHYSICS - 112
CLASS EXERCISE #2 - 14 June 2005The diagram below shows three charges which are identical in magnitude (same number of coulombs), one of which is positive and the other two negative S is positive, < is negative. The middle charge is exactly halfway betwe
Iowa State - PHYSICS - 112
CLASS EXERCISE #3 - 15 June 2005Consider the electrical force between pairs of electric charges as shown. These are three independent problems, with different charges but the same separation < in each case. U represents the same number of coulombs in eac
Iowa State - PHYSICS - 112
CLASS EXERCISE #4 - 16 June 2005Here are some statements about the electric force. Determine if each is true or false. If false, explain why, by giving a counterexample or correcting the statement. (1) The electric force between two electric charges is a
Iowa State - PHYSICS - 112
CLASS EXERCISE #5 - 20 June 2005(1) Suppose that the electric field at a certain point is t I oe ( 1000 N/C, 500 N/C). (a) What is the electric force produced by that field on a charge of 15 .C? t t J oe ;I oe 15 , 106 C 1000 N/C, 500 N/C oe 0.015 N, 0.0
Iowa State - PHYSICS - 112
CLASS EXERCISE #6 - June 21, 2005 (1) When two charges are separated by 4.0 m, their electric potential energy is 12 J. What can you tell, if anything, about the signs of these two charges? Since the electric potential energy is positive, the two charges
Iowa State - PHYSICS - 112
CLASS EXERCISE # 7 - 27 JUNE 2005V 5H 3H 3H M 3A 2A 4A ?Z 15 V 6V 12 VAnswer these questions using Ohm's law and also fill out the table above: (1) Determine the potential difference across a 5-ohm resistor through which a current of 3 amperes is flowin
Iowa State - PHYSICS - 112
CLASS EXERCISE #8 - 28 June 2005(a) What is the equivalent voltage of this circuit? The two batteries face the same way, so the equivalent voltage is the sum of their voltages: 6 V 12 V oe 18 V. (b) What is the equivalent resistance of this circuit? The
Iowa State - PHYSICS - 112
CLASS EXERCISE #9 - 29 June 2005An electric circuit consists of a 23-V battery and a 4-V battery facing in opposite directions and two resistors, one 3 ohms and the other 2 ohms, all in series.(a) Draw this circuit, determine the current in this circuit
Iowa State - PHYSICS - 112
CLASS EXERCISE #11 - 5 July 2005(1) Consider the six mutually-perpendicular directions north, east, south, west, up, and down. Determine the direction of the magnetic force on a current segment for these cases: (a) Current is north, magnetic field is eas
Iowa State - PHYSICS - 112
CLASS EXERCISE #12 - 7 July 2005On your sheet, draw square or rectangular circuits (like this: ) with the current indicated and a uniform magnetic field shown. Then determine and show the direction of the force ( , , , , , OE or 0 if no force) on each si
Iowa State - PHYSICS - 112
Class Exercise #15 - 13 July 2005A circuit loop with cross-sectional area 0.060 m2 and resistance t H is shown in a uniform external magnetic field F of initial magnitude 0.5 T. t OE F ext (a) Determine the initial magnitude of the magnetic flux through
Iowa State - PHYSICS - 112
CLASS EXERCISE #16 - BASTILLE DAY(a) What is the direction of the magnetic field of the wave at that point at that time? t Using the right-hand rule with t north and I up, the magnetic field must be in the east direction. (b) What is the wavelength of th
Iowa State - PHYSICS - 112
CLASS EXERCISE #17 - 18 July 2005Light at an angle of incidence of 40 strikes a horizontal interface between water (8 oe 1.33) and glass (8 oe 1.50), coming from the water side. (a) Draw a diagram showing the incident ray and then sketch the reflected an
Iowa State - PHYSICS - 112
CLASS EXERCISE #18 - 19 July 2005A spherical mirror has a radius of curvature of 20 cm. An object is placed on the principal axis on the concave side a distance of 5.0 cm from the vertex of the mirror. Determine the focal length of this mirror and then m
Iowa State - PHYSICS - 112
CLASS EXERCISE #19 - 20 July 2005You are supposed to make a slide projector using a single convergent lens. The projector projects an image of a slide (which is placed near the lens, in the projector). Suppose you want the slide to be magnified 100 times
Iowa State - PHYSICS - 112
CLASS EXERCISE #20 - 25 July 2005Light of wavelength 500 nm is incident on a pair of slits. On a screen 2.0 m away, the interference maxima are found to be 2.0 mm apart. (a) Determine the angle ) (in radians and in degrees) corresponding to the first int
Iowa State - PHYSICS - 112
CLASS EXERCISE #22 - 27 July 2005Initially unpolarized light passes through four different polarizers, all of them letting through light polarized in a horizontal plane (like polarizers sitting on an overhead projector). The first lets through light pola
Iowa State - PHYSICS - 112
CLASS EXERCISE #23 - 28 July 2005Light of wavelength 520 nm is incident normally (perpendicularly) from air onto an interface with a thin oil film (8 oe 1.30) that is floating on water (8 oe 1.33). (a) What is the frequency of this light?0 oe - oe 3 , 1
Iowa State - PHYSICS - 112
CLASS EXERCISE #24 - 1 August 2005 An atom undergoes a transition from a state of energy 14.7 eV to a state of energy 10.6 eV. Determine whether a photon was absorbed or emitted, and determine that photon's energy (in both eV and joules) and frequency. Th
Iowa State - PHYSICS - 112
PHYSICS 112 - EXAM 4 (first part of final exam) - FALL 2003 Name _ Section _Use only a right-handed coordinate system ( B C D along thumb, forefinger, and middle finger of your right hand when these three fingers are perpendicular to one another). Show y
Iowa State - PHYSICS - 112
P-1PHYSICS 112 SUMMER 2005 Homework for June 14, 2005 Due in recitation during the first five minutes; after that, worth only 50% as much.Name SectionIn parts (1a) through (1c), consider the two dimensionless vectors t t E oe (3.10, 2.40) and F oe ( 3.