Instructor: Alexander Stoytchev

Slides:



Advertisements
Similar presentations
Chapter 1: Computer Systems
Advertisements

Programming Languages
Programming with Java. Problem Solving The purpose of writing a program is to solve a problem The general steps in problem solving are: –Understand the.
1 Java Programming Basics SE-1011 Dr. Mark L. Hornick.
IntroductionIntroduction  Computer program: an ordered sequence of statements whose objective is to accomplish a task.  Programming: process of planning.
1 Kursusform  13 uger med: Undervisning i klassen 1,5-2 timer Opgave ”regning” i databar (løsninger på hjemmeside) En midtvejsopgave der afleveres og.
The Java Programming Language
Outline Java program structure Basic program elements
Chapter 1 Introduction. © 2004 Pearson Addison-Wesley. All rights reserved1-2 Outline Computer Processing Hardware Components Networks The Java Programming.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Chapter 1 Introduction.
Copyright 2013 by Pearson Education Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
Copyright 2008 by Pearson Education Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading: self-check: #1-14.
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
Java: Chapter 1 Computer Systems Computer Programming II Aug
Prepared by Uzma Hashmi Instructor Information Uzma Hashmi Office: B# 7/ R# address: Group Addresses Post message:
1 Identifiers  Identifiers are the words a programmer uses in a program  An identifier can be made up of letters, digits, the underscore character (
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley John Lewis, Peter DePasquale, and Joseph Chase Chapter 1: Introduction.
© 2006 Pearson Education Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science A 2nd Edition.
Java: Chapter 1 Computer Systems Computer Programming II.
Java Language and SW Dev’t
1 Computer Systems -- Introduction  Chapter 1 focuses on:  the structure of a Java application  basic program elements  preparing and executing a program.
Introduction to Programming David Goldschmidt, Ph.D. Computer Science The College of Saint Rose Java Fundamentals (Comments, Variables, etc.)
The Java Programming Language
Introduction. Objectives An overview of object-oriented concepts. Programming and programming languages An introduction to Java 1-2.
Lecture 2 Object Oriented Programming Basics of Java Language MBY.
Hello.java Program Output 1 public class Hello { 2 public static void main( String [] args ) 3 { 4 System.out.println( “Hello!" ); 5 } // end method main.
Chapter 2: Java Fundamentals
Page: 1 การโปรแกรมเชิงวัตถุด้วยภาษา JAVA บุรินทร์ รุจจนพันธุ์.. ปรับปรุง 15 มิถุนายน 2552 Keyword & Data Type มหาวิทยาลัยเนชั่น.
Chapter 1: Introduction Java Programming Language How the Java Virtual Machine Works (compiling, etc…) Update by: Dan Fleck Coming up: The Java Programming.
Java The Java programming language was created by Sun Microsystems, Inc. It was introduced in 1995 and it's popularity has grown quickly since A programming.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
1 Problem Solving b The purpose of writing a program is to solve a problem b The general steps in problem solving are: Understand the problemUnderstand.
Java Language Basics By Keywords Keywords of Java are given below – abstract continue for new switch assert *** default goto * package.
Intro to Programming  Chapter 1 Part 2  Problem Solving.
Quick Review of OOP Constructs Classes:  Data types for structured data and behavior  fields and methods Objects:  Variables whose data type is a class.
© 2011 Pearson Education, publishing as Addison-Wesley Chapter 1: Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science.
Introduction to Java Programming by Laurie Murphy Revised 09/08/2016.
Copyright 2010 by Pearson Education APCS Building Java Programs Chapter 1 Lecture 1-1: Introduction; Basic Java Programs reading:
1 Problem Solving  The purpose of writing a program is to solve a problem  The general steps in problem solving are: Understand the problem Dissect the.
Working with Java.
Chapter No. : 1 Introduction to Java.
Lecture 2: Data Types, Variables, Operators, and Expressions
CSE 190D, Winter 2013 Building Java Programs Chapter 1
CS180 – Week 1 Lecture 3: Foundation Ismail abumuhfouz.
Variables and Arithmetic Operators in JavaScript
University of Central Florida COP 3330 Object Oriented Programming
1.3 Problem Solving The purpose of writing a program is to solve a problem The general steps in problem solving are: Understand the problem Dissect the.
Starting JavaProgramming
null, true, and false are also reserved.
Introduction to Java Programming
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
An overview of Java, Data types and variables
Instructor: Alexander Stoytchev
Chapter 1: Computer Systems
Units with – James tedder
Compiling and Compiler Errors
Units with – James tedder
JavaScript Reserved Words
Instructor: Alexander Stoytchev
Java Software Solutions Foundations of Program Design 9th Edition
Focus of the Course Object-Oriented Software Development
Module 2 - Part 1 Variables, Assignment, and Data Types
CSE 142, Spring 2012 Building Java Programs Chapter 1
Zorah Fung University of Washington, Spring 2015
Chap 2. Identifiers, Keywords, and Types
CSE 142, Winter 2014 Building Java Programs Chapter 1
Agenda Types and identifiers Practice Assignment Keywords in Java
Zorah Fung University of Washington, Winter 2016
Presentation transcript:

Instructor: Alexander Stoytchev ComS 207: Programming I Instructor: Alexander Stoytchev http://www.cs.iastate.edu/~alex/classes/2006_Spring_207/ © 2004 Pearson Addison-Wesley. All rights reserved

Introduction and First Program January 9, 2006 ComS 207: Programming I (in Java) Iowa State University, SPRING 2006 Instructor: Alexander Stoytchev © 2004 Pearson Addison-Wesley. All rights reserved

Outline Questionnaire Class Overview Syllabus First Program © 2004 Pearson Addison-Wesley. All rights reserved

Questionnaire © 2004 Pearson Addison-Wesley. All rights reserved

A silly question How many of you know how to read and write? © 2004 Pearson Addison-Wesley. All rights reserved

Well, this was not always the case © 2004 Pearson Addison-Wesley. All rights reserved

A silly question How many of you know how to read and write? program © 2004 Pearson Addison-Wesley. All rights reserved

Today programming is becoming a required skill for many jobs © 2004 Pearson Addison-Wesley. All rights reserved

Language Acquisition © 2004 Pearson Addison-Wesley. All rights reserved

[http://www. wellroundedkids [http://www.wellroundedkids.com/store/Accessories/wooden%20alphabet%20puzzle.jpg]] © 2004 Pearson Addison-Wesley. All rights reserved

[http://www.usm67.org/alphabet/images/alphabet.jpg] © 2004 Pearson Addison-Wesley. All rights reserved

Java A programming language specifies the words and symbols that we can use to write a program A programming language employs a set of rules that dictate how the words and symbols can be put together to form valid program statements The Java programming language was created by Sun Microsystems, Inc. It was introduced in 1995 and it's popularity has grown quickly since © 2004 Pearson Addison-Wesley. All rights reserved

Reserved Words The Java reserved words: abstract boolean break byte case catch char class const continue default do double else enum extends false final finally float for goto if implements import instanceof int interface long native new null package private protected public return short static strictfp super switch synchronized this throw throws transient true try void volatile while © 2004 Pearson Addison-Wesley. All rights reserved

Focus of the Course This is an intro to programming class (that uses the java programming language) The focus is on the logic of programming problem solving program design, implementation, and testing object-oriented concepts classes Objects methods © 2004 Pearson Addison-Wesley. All rights reserved

Focus of the Course This class is geared for non-Computer Science majors. If your major is CS you should take ComS 208. However, this does not mean that this is an easy class… © 2004 Pearson Addison-Wesley. All rights reserved

In other words, this class is NOT © 2004 Pearson Addison-Wesley. All rights reserved

What this class will NOT cover We will not go into details of programming GUIs We will not cover many of the libraries and classes that ship with the java language Currently there are > 2,500 classes in these libraries We will not cover some advanced Object-Oriented concepts © 2004 Pearson Addison-Wesley. All rights reserved

Warning Learning how to program takes a lot of time! It also requires a lot of patience. You cannot learn how to program by just reading a textbook. You have to spend long hours in front of the computer. If you want to learn how to program well you will have to take at least 2-3 classes. This class alone is not enough. © 2004 Pearson Addison-Wesley. All rights reserved

Syllabus Posted on the Class Web Page: http://www.cs.iastate.edu/~alex/classes/2006_Spring_207/ © 2004 Pearson Addison-Wesley. All rights reserved

REQUIRED TEXTBOOK

First Program © 2004 Pearson Addison-Wesley. All rights reserved

Java Program Structure In the Java programming language: A program is made up of one or more classes A class contains one or more methods A method contains program statements These terms will be explored in detail throughout the course A Java application always contains a method called main © 2004 Pearson Addison-Wesley. All rights reserved

Java Program Structure // comments about the class public class MyProgram { } // comments about the method public static void main (String[] args) { } System.out.println(“Hello World!”); © 2004 Pearson Addison-Wesley. All rights reserved

Java Program Structure // comments about the class public class MyProgram { } class header class body Comments can be placed almost anywhere © 2004 Pearson Addison-Wesley. All rights reserved

Java Program Structure // comments about the class public class MyProgram { } // comments about the method public static void main (String[] args) { } method header method body © 2004 Pearson Addison-Wesley. All rights reserved

Java Program Structure // comments about the class public class MyProgram { } // comments about the method public static void main (String[] args) { } System.out.println(“Hello World!”); © 2004 Pearson Addison-Wesley. All rights reserved

Questions/Comments? © 2004 Pearson Addison-Wesley. All rights reserved

THE END © 2004 Pearson Addison-Wesley. All rights reserved