Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation...

27
Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation http://courses.wccnet.edu/ ~bgoldber email: [email protected]

Transcript of Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation...

Page 1: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

1

Beginning JAVA Programming CIS 175

First Day Orientationhttp://courses.wccnet.edu/~bgoldber

email: [email protected]

Page 2: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

2

First Day Orientation

• Introduction

• Text Book

• Syllabus

• Course Objectives

• Grade Determination

• Getting Started with Java Programming

Page 3: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

3

Introduction

• Mr. Brian Goldberg – Programmer

• Started in the early 80’s working for a small company predicting enlistment in the military

• Hardware: pre IBM PC

• Software: BASIC, Word processing, general data clerk

Page 4: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

4

Computer Experience (cont)

• 1990, Computer Sciences Corporation, EPA

• Predicting emissions from cars, trucks and motorcyles

• Hardware: long since gone, non-existent, UM based, MTS mainframe, IBM PC and MAC

• Software: FORTRAN

Page 5: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

5

Computer Experience (cont)

• 1994, MEDSTAT, Data Conversion

• Health Care Information Company, any more explanation is too complicated

• Hardware: HP3000

• Software: FORTRAN

Page 6: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

6

Computer Experience (cont)

• 1996, STATPROBE, Statistical Reporting

• Helps pharmaceutical companies get new drugs and medical procedures approved by the FDA

• Hardware: IBM PC with OS/2

• Software: SAS and SAS Macros

Page 7: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

7

Computer Experience

• 1997, M-CARE, Customer Service, Data and Operations

• HMO owned by UM

• Hardware: HP3000 obsolete in 2006

• Software: COBOL, AMISYS a million dollar claims payer package

Page 8: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

8

M-CARE (cont)

• AMISYS uses all the HP3000 tools and 4GL’s which will all go away when HP3000 goes away

• SUPRTOOL a database handy man

• Image databases not "visual" image

• COGNOS Powerhouse – a suite of tools – QUICK, QTP, and QUIZ

Page 9: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

9

Computer Experience

• 2003, M-CARE, Corporate Reporting

• Everything not on the HP3000

• Hardware: HP9000 with UNIX

• Software: PL/SQL, Crystal Reports (on a PC oh what a headache), Oracle 8i

Page 10: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

10

Introduction

• Taught CIS175 Fall of 2002 and Winter 2003

• Taught CPS171 - 16 times, CPS271 (6/0)• Taught CIS121 - 3 times• Other classes

– CIS100– CIS116/117 when it was two classes– CIS103/104 predecessor to CIS117

Page 11: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

11

Introduction

• M.A. Math/CS, EMU 1994

• B.S. Math/Stats, Carnegie Mellon University, Pittsburgh, PA 1990

Page 12: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

12

Text Book

• A First Book Of Java– by Gary J. Bronson– Publisher: Course Technology– Copyright 2002

Page 13: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

13

Web Based E-Mail -- User ID and Password

• http://nwmail.wccnet.edu/activate.htm

Page 14: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

14

Course Objectives

• Chapters 1-13. Almost the whole book

• Chapter 13 is I/O and will be covered early on and the rest in the order of the text book

• Chapter 14 is parameters to a program and there is not enough time

Page 15: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

15

Misc• Labs are due in class

• Homework submission web page

• Download the JAVA language, environment and documentation

Page 16: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

16

Good Study Habits

• Class Attendance / Discussion

• Complete assigned reading

• Homework completed on time

• Study for Tests

• Ask questions about Programming in general and JAVA in specific

Page 17: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

17

Grade Determination

• Six Machine Problem Programs MP1-MP6

• Three tests and one Final

• Attendance

• Labs

• Add up the points and divide by the total

Page 18: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

18

Compiling

• A solution to a problem can be written in a programming language

• A solved problem is translated into a programming language like JAVA

• Compiling is turning a program into instructions that a computer understands

Page 19: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

19

Running Programs

• A compiled program can be run

• This is when a computer actually carries out the instructions

Page 20: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

20

Program Structure

• Every JAVA program is a class and the name of the JAVA program is the name of the class

Page 21: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

21

The method called main

• Every class program must have a method called main

Page 22: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

22

Syntax

• The JAVA syntax tells us

• What is meant by syntax?

Page 23: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

23

Identifier syntax

• There is a proper syntax associated with an identifier name (True/False)?

• LetterOrUnderScore followed by one or more LetterOrDigitOrUnderscore

Page 24: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

24

Blocks

• Groups of statements are called blocks

• Begin with a {

• and end with a }

Page 25: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

25

Style

• It is good programming style to document your programs

• Use constants also known as final values

• Doesn’t change the outcome of the program

• What does good style achieve?

Page 26: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

26

Examples

• See an example on the web of a simple program

• http://courses.wccnet.org/~bgoldber/course/JAVAS03/inc/Hello.java

Page 27: Part-time Instructor - Brian Goldberg 1 Beginning JAVA Programming CIS 175 First Day Orientation bgoldber email: bgoldber@wccnet.edu.

Part-time Instructor - Brian Goldberg

27

Lab 1

• In this simple exercise you will learn to make your first program.

• http://courses.wccnet.org/~bgoldber/course/JAVAS03/labs/lab1.htm