1 CS1100 Fall 2008. Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:

Slides:



Advertisements
Similar presentations
1 CS100J. Lecture 2, 25 January 2007 Today’s topic: Objects and classes Reading for this lecture: Section 1.3. It’s most important that you study this.
Advertisements

Introduction to Computer Programming I CSE 113
EG1003: Introduction to Engineering and Design EG1003 Overview.
Math 1160 – Finite Mathematics and Its Applications Openers.
Welcome to Introduction to Java Programming At J.D.O’Bryant Science & Mathematics Chonho Lee Department of Computer Science University of Massachusetts.
CS100J 11 September 2003 Course Management System for CS100J is now populated with students who were pre-registered. Look at course web page to see how.
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
1 Welcome to CS 105 Intro Comp Pgm’g I Welcome to IIT too?
0 CS100J September 2007 CS100J: 12 weeks programming using Java, 2 using Matlab. David Gries. CS100M: 7 weeks of Matlab and 7 of Java. Daisy Fan. CS100H:
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
Transition to Matlab CS1132 Fall 2009 Instructor: K.-Y. Daisy Fan TA: Lucian Leahu Course consultants
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Recitation 1 Programming for Engineers in Python.
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.
ITP © Ron Poet Lecture 1 1 IT Programming Introduction.
Quote for the day: Computational thinking: a fundamental skill for everyone … [It] is … choosing an appropriate representation for a problem or modeling.
Welcome to CS 115! Introduction to Programming. Class URL Please write this down!
CMPT 300: Operating Systems
1 CS1110 Fall 2010 Instructors: David Gries & Lillian Lee CS1112: Matlab No prior programming experience One semester of calculus Math- & engineering-
1 Lab Session-III CSIT-120 Fall 2000 Revising Previous session Data input and output While loop Exercise Limits and Bounds Session III-B (starts on slide.
Computing with Numbers CSC 161: The Art of Programming Prof. Henry Kautz 9/14/2009.
Quote for the day: Computational thinking: a fundamental skill for everyone … [It] is … choosing an appropriate representation for a problem or modeling.
MGS 351 Introduction to Management Information Systems
EG1004 Overview. Objectives of EG1004 To teach you about what engineers do: –Technical skills MS Office LabVIEW Mindstorms NXT –Professional skills Teamwork.
Welcome to IIT and cs115!.
CS 114 – Class 02 Topics  Computer programs  Using the compiler Assignments  Read pages for Thursday.  We will go to the lab on Thursday.
1 CS1110. Lecture 1, 31 Aug Types, expressions, variables, assignment statements Can’t install DrJava and running a Microsoft operating system? Contact.
CS100J Spring 2006 CS100J: 11 weeks of programming using Java and 2 weeks using Matlab. David Gries is teaching CS100J. Graeme Bailey is teaching a special.
CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
1 CPRE210: Introduction to Digital Design Instructor –Arun K. Somani –Tel: – –Office Hours: MWF 10:00-11:00 Teaching Assistant.
1 CS1110 Fall 2011 David Gries, Steve Marschner Reading for this lecture and previous lecture: Sections 1.1, 1.2, 1.3. Lab 1 will give you practice with.
Fall 2o12 – August 27, CMPSC 202 First Day Handouts  Syllabus  Student Info  Fill out, include all classes and standard appointments  Return.
CPSC 121: Models of Computation Unit 0 Introduction George Tsiknis Based on slides by Patrice Belleville and Steve Wolfman.
Matter and Interactions 1 Fall 2006 Matter & Interactions I Physics Professor & Lecturer: Dr. Reinhard Schumacher Teaching Assistants: Ms. Elisa.
1 CS1110. Lecture 1, 31 Aug Types, expressions, variables, assignment statements Summary of lectures : On course webpage, click on “Lecture summaries”.
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 CS1110 Fall Instructors: David Gries & Lillian Lee CS1112: Matlab No prior programming experience One semester of calculus Math- & engineering-
CSE8A: Introduction to Programming in Java Fall 2012 Prof. Christine Alvarado cse8afall.weebly.com.
CSE 1105 Week 1 CSE 1105 Introduction to Computer Science & Engineering Time: Wed 4:00 – 4:50 Thurs 9:30 – 10:20 Thurs 4:00 – 4:50 Place: 100 Nedderman.
1 CS 101 Today’s class will begin about 5 minutes late We will discuss the lab scheduling problems once class starts.
CS 122 Engineering Computation Lab Lab 4 Dan De Sousa and Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights.
Fall 2012 Professor C. Van Loan Introduction to CSE Using Matlab GUIs CS 1115.
1 CS1110. Lecture 2, 28 Jan Objects & classes PLive: Activities 3-3.1, 3-3.2, (not 3-3.3), 3-4.1, Summary of lectures: On course page,
Data Structures and Algorithms in Java AlaaEddin 2012.
1. PLEASE HELP US OUT WITH THIS: When you go to the open lab next door in 203, please make sure you sign in on the log sheet and enter your instructor’s.
1 CS100J Spring Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems.
Homework and Quizzes in Course Compass. Entering the classroom First stop – the classroom! Click on your class.
CS100Lecture 21 Announcements For homework due Thursday, work alone -- do not work in pairs New class location: Olin 155 Office hour oops! Lyn: MW, 11:15-12:15.
PROBLEM SOLVING AND PROGRAMMING ISMAIL ABUMUHFOUZ | CS 170.
1 CS Sept 2010 Customizing a class Quote for the day: I have traveled the length and breadth of this country and talked with the best people, and.
Computer Science I ISMAIL ABUMUHFOUZ | CS 180. CS 180 Description BRIEF SUMMARY: This course covers a study of the algorithmic approach and the object.
1 CS Sept Customizing a class & testing Quote for the day: There is no reason anyone would want a computer in their home. - -Ken Olson, founder.
CMSC201 Computer Science I for Majors Lecture 05 – Comparison Operators and Boolean (Logical) Operators Prof. Katherine Gibson Prof. Jeremy.
CS101 Computer Programming I
CS1110 Spring Instructor: David Gries
CS1110 Classes, stepwise refinement 23 Sep 2009
CS100J. Lecture 2, 24 September Objects & classes
CS190/295 Programming in Python for Life Sciences: Lecture 1
Introduction to Java, and DrJava part 1
CS 1110 Please do this now. Draw three variables on a piece of paper as shown to the right: b 4 c 7 d false Below is a “program” consisting of 3 assignment.
EG 1003 Overview.
EG1003: Introduction to Engineering and Design
Introduction to Java, and DrJava
CS100J CS100M is in Kimball Bll.
Introduction to Java, and DrJava part 1
CS Problem Solving and Object Oriented Programming Spring 2019
Presentation transcript:

1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J: Java No prior programming experience No calculus Non-numerical problems Later assignments: processing images, games, playing music Website.

2 Methods to increase chances of success in the course. 1.Section. In the ACCEL Lab. Guided exercises on computer, TA and consultants walking around, helping. Mandatory. 2.Quizzes. Let you know what material is important for you to know at that point. You will know quite clearly what the quiz will cover, and everyone is expected to get A on each quiz. 3.Lectures are not 45 minutes of Gries talking. See demos of programming and execution of programs in class almost every lecture. There will be some interactive work with you. We will try to make it interesting. 4. Course text: CD at the back of the book has minute lectures, each on one specific point. 5.One-on-one sessions beginning 3rd week. You will work for 30 minutes with Gries, TA, or consultant on the computer.

3 Methods to increase chances of success in the course 6. First prog assignment, everyone gets 10. Requires mastery. You submit and get feedback and resubmit until it is right. 7. “Interludes”, discuss some aspect of computing, internet, or CS to help you understand the computing world we live in today. 8. AEW Workshops. 1 credit, 2 hours. No homework. Small, collaborative classes parallel to course. No class this week. Talk to advisors in Olin 167. Academic Integrity. We ask you not to cheat, in any way, shape, or form. On our side, we will try our best to be fair about the amount of work we are giving you, in the grading of that work, and in giving you a course grade. For more info, see course website. Course Management System. Visit cms.csuglab.cornell.edu/ If you are not listed there, Maria Witlox, Ask to add you to CS1110 CMS. Need your Cornell

Read through for Thursday: Sec. 1.3 on classes & objects 4 You will not understand it all. It may seem hard. It isn’t; it is just new. Big problem: Lots of new terminology. Reading through the section will help you become familiar with it and will make Thursday’s lecture seem easier. Thursday, we will go through the material carefully and use DrJava to show you everything simply and clearly. Glancing ahead can make introduction of the material in class easier for you. Learning steadily, in small doses, is superior to cramming every two weeks.

5 Reading for this and the next lecture: Sections 1.1, 1.2, 1.3. Lab 1 will give you practice with concepts and details of 1.2, 1.3 PLive: Lesson 0, Lesson page 1.3, Activity Summary of lectures: On course home page, click on “Handouts” and then “Outline of lectures held so far”. Today: Introduce expressions in Java (using DrJava) Show you around the CD ProgramLive DrJava. We write programs using the free IDE (Integrated Development Environment) called DrJava. Download it from the course website.

6 Recitations (Labs) in the Engineering ACCEL LAB To get to the ACCEL Lab, go into the Engineering Library in Carpenter Hall, walk straight until you come to a staircase on your left, and go up the stairs. Do not be concerned if you haven’t been able to register for a recitation section. Just go to the one you want this week. We will straighten it out soon, so that you can register. Here are the times of the recitation-labs: Attend ONE of them. Tuesday:12:2, 1:25, 2:30, 3:35 Wednesday:12:2, 1:25, 2:30, 3:35

7 Terminology Programming language (Java, C, Fortran, Matlab, Python): a language in which you write programs, often to be executed on a computer. Program: A set of instructions, written in a programming language, to be executed (carried out, performed) to get some task done. Like a recipe in a cookbook. Machine language. The language of instructions that a computer is able to execute (carry out, perform). Java Compiler. A program that translates a Java program into a machine language form so that it can be executed on a computer.

8 Type: A set of values together with operations on them. Type integer: values: …, –3, –2, –1, 0, 1, 2, 3, 4, 5, … operations: +, –, *, /, unary – Memorize this definition! Write it down several times. Type int: values: – , – , …, –3, –2, –1, 0, 1, 2, 3, 4, 5, …, , operations: +, –, *, /, unary – – –1

9 Type: A set of values together with operations on them. Type double: values: Examples: –22.51E6 equivalent to – or –22.51 * E–6 equivalent to or * 10 –6 An approximation to the real numbers. operations: +, –, *, /, unary – exponentmantissa Type boolean Values: true false Operators: and && or || not !

10 Precedence of operators (page 23) Unary operators: + – ! Binary arithmetic: * / % Binary arithmetic: + – Arithmetic relations: = Equality relations: == != Logical and: && Logical or: | | The lecture also touches on: Types boolean (p. 20) and String (p. 22) You will use these things in Lab 01.

11 Variables. p. 26 A variable is a name together with a value. A variable is a named box with a value in the box. 5 Memorize definition! Write it down several times. xHere’s variable x, with value 5. It can contain an int value. int 20.1 areaHere’s variable area, with value 20.1 It can contain a double value. double

12 Declaration of a variable. p. 26 In Java, a declaration of a variable gives the name of the variable and the type of value it can contain. Memorize definition! Write it down several times. int x;Here’s a declaration of x, indicating that it contain an int value. double area;Here’s a declaration of area, indicating that it can contain a double value. Assignment statement. p. 27 Execution of an assignment statement stores a value in a variable. x= x + 1;Evaluate expression x+1 and store its value in variable x. To execute the assignment = ; evaluate expression and store its value in variable.