Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 200 - Programming I Jim Williams, PhD.

Similar presentations


Presentation on theme: "CS 200 - Programming I Jim Williams, PhD."— Presentation transcript:

1 CS Programming I Jim Williams, PhD

2 Who Am I? My Interests: CS Education, specifically the teaching and learning of programming. PhD in Computer Science, minor in Educational Psychology Husband, Father, Coach, Traveller, ...

3 Comp Sci 200 - Programming I
What is Computer Science & Programming? Tracing a Java Program Organization of Course Who is here? Programming Process

4 What is Computer Science?
What is Programming? With a name like computer science, you might think it is all about the computer. Core principles: Abstractions and algorithms This course: Learning to give instructions to the computer. Read and Write Java

5 What is Computer Science?
The study of the computer itself as well as how computers are applied to solve problems in any field. What is Programming? Designing algorithms and writing them in a language a computer can execute.

6 Enjoyment and Satisfaction
Lots of puzzles, problem solving and challenge Opportunity to create something from nothing Opportunity to apply to any field Many enjoy these aspects of Computer Science and find a lot of satisfaction when successful.

7 A Java Program import java.util.Scanner; public class ReadNumber {
public static void main(String[] args) { Scanner input = new Scanner(System.in); double num = input.nextDouble(); System.out.println("Number entered: " + num); } Java is a text language for controlling the computer. Programs are called "code" for a reason. Decode (read) "convert (a coded message) into intelligible language." [Google Dictionary]

8 Java Visualizer Demo Link available on right side of course website.

9

10

11 Organization of Course: Study Cycle

12 When Women Stopped Coding

13 Who is here?

14 Understand vs. Apply Steph Curry, NBA Golden State Warriors
Basketball Analogy Demonstration vs. Practice Declarative Knowledge vs Procedural Knowledge Importance of Practice for learning If you watch the same video or even 10 different videos on how to shoot a basketball do you get better at shooting a basketball? Steph Curry, NBA Golden State Warriors

15 Declarative and Procedural Knowledge
Declarative: Knowledge about something talk about a bike CS terms and Java syntax Procedural: Knowing how to do something ride a bike solve a problem systematically write in Java

16 Edit-Compile-Run Cycle
From the command-line: notepad (Editor) javac (Compiler) java (Virtual Machine)

17 File name Cat.txt Cat.java Cat.class Cat For the class named Cat, what is the name of the file that the compiler creates and is provided to the Java Virtual Machine to run? Cat.class

18 Compile For the class named Cat, what command would compile the class?
notepad Cat.java javac Cat.java java Cat.java java Cat For the class named Cat, what command would compile the class? javac Cat.java

19 Edit-Compile-Run Cycle
Users Editor (Virtual) Machine Compiler Hello.java Hello.class Computer Files Programmer

20 Various Errors Naming/Saving Syntax/Compile time Runtime & Logic Files
Editor (Virtual) Machine Compiler Hello.java Hello.class Computer Files Programmer


Download ppt "CS 200 - Programming I Jim Williams, PhD."

Similar presentations


Ads by Google