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.

Slides:



Advertisements
Similar presentations
Lecture 13: 10/8/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Advertisements

1 CS101 Introduction to Computing Lecture 17 Algorithms II.
IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
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.
Introduction to Computer Programming in C
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 20 th, 2009.
The Analytical Engine Module 6 Program Translation.
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.
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:
1 Lab Session-IV CSIT-120 Spring 2001 Lab 3 Revision and Exercises Rev: Precedence Rules Lab Exercise 4-A Machine Language Programming The “Micro” Machine.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
1 Lab Session-IV CSIT-120 Fall 2000 Precedence Rules Machine Language Programming The “Micro” Machine The “Micro” Simulator The “Micro” Translator (Thanks.
CSC 111 Course orientation
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
1 CS100J 30 January 2007 The class definition Course Management System (CMS) for CS100J is populated with students who were pre-registered. Look at course.
1 CS100J 05 February 2005 Today’s topic: Customizing a class (continued) Quiz 1 is today Quiz 2 is next Tuesday Quote for the day: There is no reason anyone.
COMS S1007 Object-Oriented Programming and Design in Java July 3, 2007.
1 Session-13 CSIT 121 Spring 2006 Test-1 is on March 9 th ; Demo-5 due date extended to March 7 Test-1 is on March 9 th ; Demo-5 due date extended to.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
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.
Quote for the day: Computational thinking: a fundamental skill for everyone … [It] is … choosing an appropriate representation for a problem or modeling.
01- Intro-Java-part1 1 Introduction to Java, and DrJava Barb Ericson Georgia Institute of Technology June 2008.
Abstraction IS 101Y/CMSC 101 Computational Thinking and Design Tuesday, September 17, 2013 Carolyn Seaman University of Maryland, Baltimore County.
ITEC 352 Lecture 11 ISA - CPU. ISA (2) Review Questions? HW 2 due on Friday ISA –Machine language –Buses –Memory.
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.
CIS Computer Programming Logic
Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.
CS2303 C14 Systems Programming Concepts Bob Kinicki.
Georgia Institute of Technology Introduction to Java, and DrJava Barb Ericson Georgia Institute of Technology Aug 2005.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
©Xiaoying Gao, Peter Andreae First Java Program COMP 102 #2 2014T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Copyright © 2002 W. A. Tucker1 Chapter 7 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Software Overview. Why review software? Software is the set of instructions that tells hardware what to do The reason for hardware is to execute a program.
First Java Program COMP 102 #2 2015T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 13: An Introduction to C++
Lecture 2 Object Oriented Programming Basics of Java Language MBY.
1 CS1110. Lecture 1, 31 Aug Types, expressions, variables, assignment statements Can’t install DrJava and running a Microsoft operating system? Contact.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
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.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
1 CS1110. Lecture 1, 31 Aug Types, expressions, variables, assignment statements Summary of lectures : On course webpage, click on “Lecture summaries”.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
1 CS1100 Fall Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems CS100J:
1 CS1110 Fall Instructors: David Gries & Lillian Lee CS1112: Matlab No prior programming experience One semester of calculus Math- & engineering-
CS Class 03 Topics  Sequence statements Input Output Assignment  Expressions Read pages Read pages 40 – 49 for next time.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CS 115 QUIZ # 2 INFORMATION 1. When TUESDAY 11/10 Worth: 8 points 2.
CS100R: Introduction to Computing Using MATLAB and Robotics Prof. Ramin Zabih
1 CS100J 08 September 2005 Today’s topic: Customizing a class (continued) Quote for the day: There is no reason anyone would want a computer in their home.
Textbook C for Scientists and Engineers © Prentice Hall 1997 Available at NUS CO-OP at S$35.10.
Review of the numeration systems The hardware/software representation of the computer and the coverage of that representation by this course. What is the.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 06 – Java Datatypes Webpage:
1 CS100J Spring Instructor: David Gries CS100M: Matlab No prior programming experience One semester of calculus Math & engineering type problems.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Starter Using two’s Complement form convert the following from Denary to Binary using 8 bits. Answer on mini whiteboard Using two’s.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
ECE/CS 352 Digital System Fundamentals1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Introduction Charles R. Kime.
CS1110 Spring Instructor: David Gries
CS190/295 Programming in Python for Life Sciences: Lecture 1
Introduction to Java, and DrJava part 1
CS100J 06 September 2005 The class definition
Introduction to Java, and DrJava
CS100J CS100M is in Kimball Bll.
Introduction to Java, and DrJava
Introduction to Java, and DrJava part 1
CS100J 22 February 2005 More on Methods. Developing methods
Presentation transcript:

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 section of CS100J. CS100M: 7 weeks of Matlab and 6 weeks of Java. Quote for the day: "I think there is a world market for maybe five computers." --Thomas Watson, chairman of IBM, 1943 None of these versions of CS100 require previous programming experience.

CS100J Fall 2005 Gries: Course outcomes: (1)Basic understanding of object-oriented and procedural aspects of programming, as expressed in Java. (2)Fluency in Java —able to write programs using classes and subclasses, as well as assignments, conditionals, and loops. (3)Knowledge of the basic API classes and their specifications.

CS100J Fall 2005 Methods to increase chances of success in the course. 1.Each week, the “recitation-section” will be in the ACCEL lab, where you will do guided exercises on the computer, with a TA and some consultants walking around, helping. 2.Quizzes will be given frequently. They are designed to 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. You will 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.The course text provides an alternative way for you to learn the material; the CD at the back of the book has minute lectures, each on one specific point.

Reading for this and the next lecture: Sections 1.1, 1.2, 1.3. Lab 01 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”. Topics of all lectures (this may change): On course home page, click on “Syllabus”. Today: Introduce expressions in Java (using DrJava) Show you around the CD ProgramLive

Programming Languages Computer program: set of instructions for a computer to perform, or execute. Written in a programming language. Machine (computer) instructions: Load memory location into register 2 Load memory location into register 3 Add register 2, register 3, put result in register 2 If register 2 > 0, take next instruction from location Use high-level language: Java, C, C++, Matlab, Algol 60. Compiler: translates program written in Java into a machine language.

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: A set of values together with operations on them. Type integer: values: …, –3, –2, –1, 0, 1, 2, 3, 4, 5, … operations: +, –, *, /, unary – Type int: values: – , – , …, –3, –2, –1, 0, 1, 2, 3, 4, 5, …, , operations: +, –, *, /, unary – Memorize this definition! Write it down several times It uses 32 bits

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 – exponent mantissa

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 and String. Assignment statement. You will use these things in Lab 01.