Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Science What is Computer Science? Getting Started Programming.

Similar presentations


Presentation on theme: "Introduction to Computer Science What is Computer Science? Getting Started Programming."— Presentation transcript:

1 Introduction to Computer Science What is Computer Science? Getting Started Programming

2 Computer Science Study of Recipes –Programs –Algorithms What do computer scientists study? –How do recipes work apart from how they are implemented—an algorithm –Can recipes be written for any problem? –How do people interact with a computer? –How do we store large amounts of data? –What kind of recipes can you write to ___________? You fill in the blank!

3 Programs What is a programming language? –Machine Language –Assembly Language –High Level Language Examples –Java –Scheme

4 Java public class HelloWorld { public static void main(String[] args) { System.out.println(“Hello World”); }

5 Scheme (define helloworld (lambda () (display “Hello world”) (newline)))

6 Program vs Algorithm What is the difference between a program and an algorithm? Your Turn!

7 Why Binary? Computers are just big collection of switches!!! 64+16+4+2+1 = 87 Your turn –1001 –1001010 1010111 2626 2525 2424 23232 2121 2020

8 Digital Media Images Sound Why digitize?

9 Java Object-oriented –Object –Class Syntax Semantics Analogous to a written language!!

10 DrJava Files Pane Definition Pane Interaction Pane

11 DrJava Demo Operators –Math –Relational Printing Integers vs Reals Strings Variables Object Variables


Download ppt "Introduction to Computer Science What is Computer Science? Getting Started Programming."

Similar presentations


Ads by Google