CSS 161 Fundamentals of Computing Introduction to Computers & Java

22
CSS 161 Fundamentals of Computing Introduction to Computers & Java Joe McCarthy CSS 161: Fundamentals of Computing

description

CSS 161 Fundamentals of Computing Introduction to Computers & Java. Joe McCarthy. Outline. Update / reminder Recap : Lab 1 Introduction to Computers Introduction to Java Assignment 1. Updates. UW1 -120 Occasionally , hopefully Assigned readings - PowerPoint PPT Presentation

Transcript of CSS 161 Fundamentals of Computing Introduction to Computers & Java

Page 1: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

CSS 161Fundamentals of Computing

Introduction to Computers & Java

Joe McCarthy

Page 2: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Outline

• Update / reminder• Recap: Lab 1• Introduction to Computers• Introduction to Java• Assignment 1

Page 3: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Updates

• UW1-120 – Occasionally, hopefully

• Assigned readings– Any material in assigned readings

is potential fodder for exams, regardless of whether we cover it in a lecture, lab or assignment

• Slides will always be posted on web site– If not before, then shortly after each class

Page 4: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Textbooks

Absolute Java, 4th Edition Walter SavitchAddison-Wesley, 2010

Computers, Ethics & Society,3rd EditionM. David Ermann & Michele S. ShaufOxford University Press, 2003

Page 5: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Supplemental Material

Java: An Introduction to Problem Solving & Programming, 6th EditionWalter SavitchAddison-Wesley, 2012

http://courses.washington.edu/css161/joemcc/Notes/SavitchCh01.pdf

(access via “Notes” link on course homepage)

Page 6: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Experimentation via programming

“Do not be too timid and squeamish about your actions. All life is an experiment. The more experiments you make the better.”

- Ralph Waldo Emerson

Corollary: All programs are experiments.The more programs you make the better.

Page 7: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Lab 1 (last Friday)

• Submit Lab1a.java, Lab1b.java via Assignment Dropbox• Due Wednesday, 11:00am

Page 8: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Page 9: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Page 10: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Integrated Development Environments(IDEs)

• Programming tools– Edit text (code) + compile + run– Graphical representations of components

• We’ll be using BlueJ, but you can use others

netbeans.orgeclipse.orgbluej.org

Page 11: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computers

Page 12: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computer Hardware

Page 13: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computer Hardware

Page 14: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computer Software

Page 15: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computer Software

Page 16: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Page 17: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Computer Memory

Page 18: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Page 19: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

Page 20: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing

[In Mac OS X Terminal window]

d-173-250-140-5:Code joe$ ls FirstProgram*FirstProgram.javad-173-250-140-5:Code joe$ javac FirstProgram.javad-173-250-140-5:Code joe$ ls FirstProgram*FirstProgram.class FirstProgram.javad-173-250-140-5:Code joe$ java FirstProgramHello reader.Welcome to Java.Let's demonstrate a simple calculation.2 plus 2 is 4d-173-250-140-5:Code joe$

Page 21: CSS 161 Fundamentals of Computing Introduction to Computers & Java

CSS 161: Fundamentals of Computing