CSE8A Lecture2 Check the class web page (and discussion board, linked form webpage) for news and info: cse8a.weebly.com Lab starts this week. Discussion.

Slides:



Advertisements
Similar presentations
Welcome Parents! Back to School Night 2013 Chemistry II Mrs. Kelsey Ext
Advertisements

CS150 Introduction to Computer Science 1 Professor: Chadd Williams.
CS 316: Introduction to Computer Organization and Systems Programming.
Welcome to IIT and cs105!. CS Secs Jon Hanrath SB Office Hours: –MW 8:00 A.M. – 9:45 A.M. –W 5:00 P.M. – 6:00 P.M
Dr. Tatiana Erukhimova [year] Overview of Today’s Class Folders Syllabus and Course requirements Tricks to survive Mechanics Review and Coulomb’s Law.
As Class Convenes u Find a vacant chair u Turn the computer on and load Netscape u Navigate to
CS143: Programming in C++ Instructor: Dr. Yan Shi Office: 210 Ullrich Phone: Office Hour:
Selection and Testing Shirley Moore CS 1401 Spring 2013 February 21 and 26,
Summer 2009 Math 1431 and Math 1432 begin. What to do… Watch the orientation video from the spring online classes. Please note that the spring classes.
1 CS1130 Spring 2011: David Gries & Walker White Transition to Object-Oriented Programming Assumes programming knowledge in a language like Matlab, C,
1 CS1110 Fall 2011: David Gries & Steve Marschner CS1112: Matlab No prior programming experience One semester of calculus Math- & engineering- type problems.
Welcome to Biology 102! Please pick up a syllabus (if you don’t have one yet) and a clicker at the front desk. You will need to rent a clicker from the.
COMP 151: Computer Programming II Spring Course Topics Review of Java and basics of software engineering (3 classes. Chapters 1 and 2) Recursion.
Fall 2010 Instructor: Emily Batty.  Emily Batty   is the BEST way to reach me!!!
MAT 0145 College Readiness Math II Spring 2015
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
CSE 501N Fall ‘09 00: Introduction 27 August 2009 Nick Leidenfrost.
COMP Introduction to Programming Yi Hong May 13, 2015.
Business 70 Introduction to eCommerce On Line Distance Learning.
How to be an online student. How does it work? An online course follows a schedule and syllabus with due dates for assignments (just like an on-campus.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Welcome to Physics 1D03.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
CSE8A Lecture3 TODO: –Finish PSA1 individually (no partner!) and turn it in with the bundlePSA1 command GET AN INTERVIEW for PSA1 from a tutor See tutor.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
CS 101: Introduction to computer programming and utilization Abhiram Ranade.
1 Turtle Graphics and Math Functions And how you can use them to draw cool pictures!
1 CS Programming Languages Class 15 October 17, 2000.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
Moderated by Bill Shields M.S. Department of Geography-Geology A Discussion of Large Lectures.
CS1101: Programming Methodology Aaron Tan.
Basic Seminar Rules Stay on Topic If we seem to be getting off track or too much is going on at once, then I will ask everyone to HOLD UP. That is your.
TIPS FOR EFFECTIVE TEACHING IN STEM HIGHER EDUCATION Benjamin C. Flores, Ph.D. Director, Computing and Electrical and Engineering Division MIE Project.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
CSE 113 Introduction to Computer Programming Lecture slides for Week 12 Monday, November 14 th, 2011 Instructor: Scott Settembre.
Creative Commons Attribution Non-Commercial Share Alike License sa/3.0/
1 CS1110 lecture 4 9 Sept. Customizing a class & testing Classes: fields; getter & setter methods. Secs (p. 45) & 3.1 (pp. 105–110 only) Constructors.
1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:
CS-1030 Dr. Mark L. Hornick 1 CS-1030 – Software Design 2 Dr. Mark L. Hornick web: people.msoe.edu/~hornick webCT: webct.msoe.edu.
CSE8A: Introduction to Programming in Java Fall 2012 Prof. Christine Alvarado cse8afall.weebly.com.
Today Introduction to NMR Spectroscopy The quiz (and all future quizzes) is a maximum of 50 points. – Notice that the quiz questions came directly from.
Style guide in JAVA From a lecture by Dr. Rahman.
Winter 2016CISC101 - Prof. McLeod1 CISC101 Elements of Computing Science I Course Web Site: The lecture outlines.
6 th Grade Earth and Space Science. 1 st 9 weeks – Scientific Method, Scientific Processes, Geologic Time, Science Fair 2 nd 9 weeks – Plate Tectonics,
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
Course Information CSE 2031 Fall Instructor U. T. Nguyen /new-yen/ Office: CSEB Office hours:  Tuesday,
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
1 Computer Science 1021 Programming in Java Geoff Draper University of Utah.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
IT 210 Week 7 Chapter 5 Programming Problems To purchase this material link Programming-Problems.
CS 274: Internet Programming
All important information will be posted on Blackboard
電腦圖學 Computer Graphic with Programming
CE221 – Data Structures & Algorithms Lab Introduction
Analysis and Comparison is ICS4U
It’s called “wifi”! Source: Somewhere on the Internet!
September 27 – Course introductions; Adts; Stacks and Queues
Welcome to CS 1010! Algorithmic Problem Solving.
Introduction to General Biology BI 101
Welcome to CS 1010! Algorithmic Problem Solving.
MA Fall 2016 Instructor: Matt Weaver Office: MATH 615
CSE 8A Lecture 6 Reading for next class:
Welcome to Physics 1D03.
Izadi Etxeberria-Ortego
Stat Introduction to Statistical Concepts and Methods
Welcome to Physics 1D03 !.
Wednesday, October 21st Dr. Dennis S. Kubasko, Jr. Associate Professor
Recapitulation of Lecture 13
Presentation transcript:

CSE8A Lecture2 Check the class web page (and discussion board, linked form webpage) for news and info: cse8a.weebly.com Lab starts this week. Discussion starts this week. Tutor hours started today. TODO: –Find a programming partner for PSA1 (due by end of lab) –For next class: , CLICKERS OUT!

8AL You MUST show up to YOUR lab (the one you’re enrolled in) on time (or early) –It’s a 40 minute sprint… (then a 10 min quiz) –If you show up more than 5 minutes late or to the wrong section you will lose all your participation points. –Lab is in B240 (BASEMENT, elevator or outside entrance – no stairs from 1 st floor)

Pair Programming People who pair in a first programming course, do BETTER in a second programming course. –Everyone must pair. If you have truly extenuating circumstances, see me in office hours or me. Who will I pair with? –Partners Find a partner after class or post on the Discussion forum Work with your assigned lab partner –Meet with him/her and block out 6 hours a week you are available to work together in the lab. If your schedules aren’t compatible, find another partner! What is pair programming? –See the class web page (link from home page)! Practice in 8AL lab.

Today in CSE 8A Chapters 2 and 3 (up to 50)

Reading Quiz CLICKERS OUT

What does this code draw? World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.turnLeft(); maria.forward(50); maria.turnRight(); maria.forward(25); A B C D 1)SOLO VOTE (1 min) 2)Discuss in team (2 min) 3)GROUP VOTE (30 sec) Hint: Turtles start facing “up”

CS Concept: Sequential Execution World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.turnLeft(); maria.forward(50); maria.turnRight(); maria.forward(25); Vs. World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.forward(50); maria.turnLeft(); maria.turnRight(); maria.forward(25);

What does this code output? World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.forward(50); maria.turnLeft(); maria.turnRight(); maria.forward(25); A B C D 1)SOLO VOTE (1 min) 2)Discuss in team (2 min) 3)GROUP VOTE (30 sec) Hint: Turtles start facing “up”

CS Concept: Sequential Execution World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.turnLeft(); maria.forward(50); maria.turnRight(); maria.forward(25); Vs. World world1 = new World(200,100); Turtle maria = new Turtle(100, 50, world1); maria.forward(25); maria.forward(50); maria.turnLeft(); maria.turnRight(); maria.forward(25); ORDER MATTERS!

How many objects are created in this code? 1)SOLO VOTE (1 min) 2)Discuss in team (2 min) 3)GROUP VOTE (30 sec) A.1 B.2 C.3 D.4 World world1 = new World(200,100); Turtle maria = new Turtle(25, 25, world1); Turtle jose = new Turtle(100, 50, world1); maria.forward(25); jose.forward(10); maria.turnLeft(); maria.forward(50); jose.forward(5);

What does this code output? World world1 = new World(200,100) Turtle maria = new Turtle(25, 25, world1); Turtle jose = new Turtle(100, 50, world1); maria.forward(25); jose.forward(10); maria.turnLeft(); maria.forward(50); jose.forward(5); A B C D 1)SOLO VOTE (1 min) 2)Discuss in team (2 min) 3)GROUP VOTE (30 sec) Hint: Turtles start facing “up”

CS Concept: Objects Turtle maria = new Turtle(25, 25, world1); What kind of object A variable that refers to the object “Give me a new object, please” The code that creates the object (constructor) maria

CS Concept: Objects Turtle maria = new Turtle(25, 25, world1); Turtle jose = new Turtle(100, 50, world1); maria jose Two different turtles objects (instances of class Turtle ) with the same capabilities

Other important Turtle methods (know these) turn penUp penDown show hide moveTo setName getName

CS Concept: Assignment What is the output of this code? int x = 3; int y = 2; int z = 2; System.out.println(x == 3); z = x + y; System.out.println(y); 1)SOLO VOTE (30 secs) 2)Discuss in team (1 min) 3)GROUP VOTE (20 sec) A) 3 5 B) true 5 C) 3 2 D) true 2 E) None of the above.

CS Concept: Data Types What is the output of this code? int x = 3; Turtle y = 2; System.out.println(x == 3); int z = x + y; System.out.println(z); 1)SOLO VOTE (30 secs) 2)Discuss in team (1 min) 3)GROUP VOTE (20 sec) A) 3 5 B) true 5 C) 3 false D) true false E) None of the above.

CS Concepts: Data Types and Assignment Turtle y = new Turtle(myWorld); int x = 3; Declared type must match assigned data Declaration and assignment on separate lines OK: Turtle y; y = new Turtle(myWorld); In java, all variables have an explicit type! Reassignment (without redeclaration) OK, even if variable is on RHS! int x = 3; x = x + 1;

CS Concept: References What does this code draw? World world1 = new World(200,100); Turtle maria = new Turtle(25, 25, world1); Turtle jose = new Turtle(100, 50, world1); maria = jose; maria.forward(50); jose.turn(90); jose.forward(50); 1)SOLO VOTE (30 secs) 2)Discuss in team (1 min) 3)GROUP VOTE (20 sec) A B C D

CS Concepts: References maria jose World world1 = new World(200,100); Turtle maria = new Turtle(25, 25, world1); Turtle jose = new Turtle(100, 50, world1); maria = jose; maria jose X

TODO Find a partner and start on your PSA1 Check the class web page and discussion board For next class: read textbook pages and prepare for reading quiz