COMS W1004 Introduction to Computer Science June 1, 2009.

Slides:



Advertisements
Similar presentations
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Advertisements

IT 325 OPERATING SYSTEM C programming language. Why use C instead of Java Intermediate-level language:  Low-level features like bit operations  High-level.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 09 – Programming with Java Datatypes and Flow Control.
COMS W1004 Introduction to Computer Science May 30, 2008.
Java Syntax Part I Comments Identifiers Primitive Data Types Assignment.
COMS S1007 Object-Oriented Programming and Design in Java July 8, 2008.
COMS W1004 Introduction to Computer Science June 24, 2009.
COMS W1004 Introduction to Computer Science June 10, 2009.
COMS W1004 Introduction to Computer Science June 15, 2009.
COMS W1004 Introduction to Computer Science June 25, 2008.
Wednesday, 12/11/02, Slide #1 CS 106 Intro to Comp. Sci. 1 Wednesday, 12/11/02  QUESTIONS??  Today: CLOSING CEREMONIES!  HW #5 – Back Monday (12/16)
CISC220 Spring 2010 James Atlas Lecture 06: Linked Lists (2), Big O Notation.
COMS W1004 Introduction to Computer Science May 28, 2008.
COMS W1004 Introduction to Computer Science June 11, 2008.
Wednesday, 10/9/02, Slide #1 CS 106 Intro to CS 1 Wednesday, 10/9/02  QUESTIONS ??  Today:  Discuss HW #02  Discuss test question types  Review 
COMS W1004 Introduction to Computer Science June 3, 2009.
COMS W1004 Introduction to Computer Science June 17, 2009.
COMS W1004 Introduction to Computer Science June 4, 2008.
CS150 Introduction to Computer Science 1
Monday, 11/18/02, Slide #1 CS 106 Intro to CS 1 Monday, 11/18/02  QUESTIONS??  Today:  Hand back, discuss HW #4  Discussion of Lab 10  Exam #2 Friday.
COMS W1004 Introduction to Computer Science May 29, 2009.
Variables and constants Applications of Computer Programming in Earth Sciences Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences.
COMS W1004 Introduction to Computer Science June 9, 2008.
COMS W1004 Introduction to Computer Science June 29, 2009.
Variables, Constants and Built-in Data Types Chapter 2: Java Fundamentals.
COMS S1007 Object-Oriented Programming and Design in Java July 3, 2007.
COMS W1004 Introduction to Computer Science May 27, 2009.
C Programming. Chapter – 1 Introduction Study Book for one month – 25% Learning rate Use Compiler for one month – 60%
1 CS1130 Spring 2011: David Gries & Walker White Transition to Object-Oriented Programming Assumes programming knowledge in a language like Matlab, C,
CPS 2231 Computer Organization and Programming Instructor: Tian (Tina) Tian.
Object Oriented Design: Identifying Objects
By Nicholas Policelli An Introduction to Java. Basic Program Structure public class ClassName { public static void main(String[] args) { program statements.
1 COS 260 DAY 2 Tony Gauvin. 2 Agenda Questions? Class roll call Blackboard Web Resources Objects and classes 1 st Mini quiz on chap1 terms and concepts.
TAG ▪ 2011 CIS 3260 Introduction to Programming Using Java.
CIT 590 Intro to Programming First lecture on Java.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 10 – Programming with Java Datatypes Type Casting.
Number Representation, Data Types and Elementary Programming Shirley Moore CS 1401 February 5-7, 2013.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
1 CS 007: Introduction to Computer Programming Ihsan Ayyub Qazi.
Ch Chapter 4 Basic Data Types and Variables 4.1 Basic Data Types In C TABLE 4.1 Introduction to Basic Data Types in C Type SizeDescription char 1.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
COMP Primitive and Class Types Yi Hong May 14, 2015.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
“Great leaders are never satisfied with current levels of performance. They are restlessly driven by possibilities and potential achievements.” – Donna.
Variables and Constants Objectives F To understand Identifiers, Variables, and Constants.
Developed at Sun Microsystems in 1991 James Gosling, initially named “OAK” Formally announced java in 1995 Object oriented and cant write procedural.
1 09/03/04CS150 Introduction to Computer Science 1 What Data Do We Have.
CSCI S-1 Section 4. Deadlines for Homework 2 Problems 1-8 in Parts C and D – Friday, July 3, 17:00 EST Parts E and F – Tuesday, July 7, 17:00 EST.
CISC220 Spring 2010 James Atlas Lecture 07: Big O Notation.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
COP2800 – Computer Programming Using JAVA University of Florida Department of CISE Spring 2013 Lecture 06 – Java Datatypes Webpage:
 Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. 
WELCOME To ESC101N: Fundamentals of Computing Instructor: Ajai Jain
COMS W1004 Introduction to Computer Science June 2, 2008.
1 Primitive Types n Four integer types:  byte  short  int (most common)  long n Two floating-point types:  float  double (most common) n One character.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Object Oriented Programming Lecture 2: BallWorld.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
COM S 207 Type and Variable Instructor: Ying Cai Department of Computer Science Iowa State University
Fundamentals 2.
Lecture 06: Linked Lists (2), Big O Notation
Chapter 2.
Principles of Computer Programming (using Java) Chapter 2, Part 1
Unit-2 Objects and Classes
Chapter 2: Java Fundamentals
Chapter 2: Java Fundamentals
Java Programming Review 1
COMS W1004 Introduction to Computer Science
Variables and Constants
COMS W1004 Introduction to Computer Science
Presentation transcript:

COMS W1004 Introduction to Computer Science June 1, 2009

Last Friday Comparing algorithms –Constant: O(1) –Logarithmic: O(log n) –Linear: O(n) –Quadratic: O(n 2 ) –Exponential: O(2 n ) –Factorial: O(n!) Reading: S&G 1-3

Last Friday Java compilation and execution Intro to programming concepts Object-oriented programming Java datatypes Reading: Big Java , 1.8,

Java Datatypes (Big Java p.135) byte8 bits short2 byte integer int4 byte integer long8 byte integer float4 byte floating-point double8 byte floating-point char2 byte character booleantrue or false

Today More object-oriented programming –Methods –Constructors Implementing Java classes Java program input/output Reading: Big Java , ,

Homework #2 Due next Monday, June 8 at beginning of class Theory –S&G Chapter 3: 10, 11, 19, 25, 28 –Paper submission only Programming –To be announced on Wednesday

Next Time If you have a laptop on which you plan to do your Programming assignments, bring it to class Try to download and install Eclipse for Java –Link is on course homepage –You can do it on Weds in class if you prefer