COMP-202 Unit 1: What is programming?
CONTENTS: What is a computer program? Why do we want to write a computer program? What makes computer programming hard? First Java program
COMP-202 Unit 1: What is programming? CONTENTS : What is a computer - - PowerPoint PPT Presentation
COMP-202 Unit 1: What is programming? CONTENTS : What is a computer program? Why do we want to write a computer program? What makes computer programming hard? First Java program Today -What is a computer programmer? -What are the steps to
CONTENTS: What is a computer program? Why do we want to write a computer program? What makes computer programming hard? First Java program
COMP-202 - Course Details 2
COMP-202 - Introduction 3
COMP-202 - Introduction 8
COMP-202 - Introduction 9
COMP-202 - Introduction 10
COMP-202 - Introduction 11
COMP-202 - Introduction 12
COMP-202 - Introduction 13
COMP-202 - Introduction 14
COMP-202 - Introduction 15
COMP-202 - Introduction 16
COMP-202 - Introduction 17
COMP-202 - Introduction 18
COMP-202 - Introduction 19
COMP-202 - Introduction 20
COMP-202 - Introduction 21
COMP-202 - Introduction 22
COMP-202 - Introduction 23
COMP-202 - Introduction 24
COMP-202 - Introduction 25
COMP-202 - Introduction 26
COMP-202 - Introduction 27
COMP-202 - Introduction 28
COMP-202 - Introduction 29
COMP-202 - Introduction 30
COMP-208 - Course Details 31
COMP-208 - Course Details 32
COMP-208 - Course Details 33
COMP-208 - Course Details 34
COMP-208 - Course Details 35
COMP-208 - Course Details 36
COMP-208 - Course Details 37
If we did, then we'd never remember remember the image. Categorization allows us to filter out many of the details until later. If you remember Don Cherry is in the picture, you don't need to actively remember that there are eyes.
COMP-208 - Course Details 38
On the other hand, there is no good way to categorize this image. We thus can't remember it well!
COMP-208 - Course Details 39
COMP-208 - Course Details 40
COMP-208 - Course Details 41
COMP-208 - Course Details 42
COMP-208 - Course Details 43
COMP-208 - Course Details 44
COMP-208 - Course Details 45
COMP-202 - Course Details 46
COMP-202 - Course Details 47
COMP-202 - Course Details 48
COMP-202 - Course Details 49
COMP-202 - Course Details 50
COMP-202 - Introduction 51
COMP-202 - Introduction 52
COMP-202 - Introduction 53
COMP-202 - Introduction 54
a burning desire to eat food money
raw ingredients
COMP-202 - Introduction 55
a burning desire to eat food money
raw ingredients
COMP-202 - Introduction 56
chopped ingredients
COMP-202 - Introduction 57
chopped ingredients
COMP-202 - Introduction 58
cooked food
COMP-202 - Introduction 59
COMP-202 - Course Details 60
COMP-202 - Course Details 61
COMP-202 - Course Details 62
COMP-202 - Course Details 63
COMP-202 - Course Details 64
COMP-202 - Course Details 65
COMP-202 - Course Details 66
COMP-202 - Course Details 67
COMP-202 - Course Details 68
COMP-202 - Course Details 69
COMP-202 - Course Details 70
COMP-202 - Course Details 71
COMP-202 - Introduction 72
COMP-202 - Introduction 73
COMP-202 - Introduction 74
COMP-202 - Introduction 75
COMP-202 - Introduction 76
COMP-202 - Introduction 77
COMP-202 - Introduction 78
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } } Notice that there are 3 closing braces } and 2 opening { Here we get the error: HelloWorld.java:9: 'class' or 'interface' expected } ^ HelloWorld.java:10: 'class' or 'interface' expected ^ 2 errors
COMP-202 - Introduction 79
Here we get the error: HelloWorld.java:9: 'class' or 'interface' expected } ^ HelloWorld.java:10: 'class' or 'interface' expected ^ 2 errors This error happens because you can not put a } in a piece of code that is not inside a class. In fact, the only thing you can define is a block of code that is a class or an interface (we haven't seen the term interface)
COMP-202 - Introduction 80
We'll try to get to as many of these as we can in class and during
cover every one of them. In that case, usually copying and pasting the error into google is useful (sometimes part of the error is specific to your program : example: HelloWorld.java:4 )
COMP-202 - Introduction 81
COMP-202 - Introduction 82
COMP-202 - Introduction 83
COMP-202 - Introduction 84
COMP-202 - Introduction 85
COMP-202 - Introduction 86
COMP-202 - Introduction 87
COMP-202 - Introduction 88
COMP-202 - Introduction 89
COMP-202 - Introduction 90
COMP-202 - Introduction 91
COMP-202 - Introduction 92
COMP-202 - Introduction 93
COMP-202 - Introduction 94