Download presentation
Presentation is loading. Please wait.
Published byWilla Willis Modified over 9 years ago
1
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall NEW 645-4739 NEW alphonce@buffalo.edu 1
2
Announcements Cell phones off Name signs out 2
3
Agenda Quick review & Questions Activity Problem solving
4
Quick review A bit can have one of two values (0 or 1) A sequence of bits is called a bit string Internal representations are in terms of bit strings Bit strings have no intrinsic meaning Bit strings are interpreted according to some representation scheme
5
Compilation “10110110” could represent a number, or a character, part of a digital photo, part of a song, or even a machine-language instruction. Programs are written in “high-level” programming languages, which must be translated into machine-language equivalent. Translation is done by a “compiler”. A compiler is a computer program (!)
6
Questions from last time Q:What is installed when installing Java? A:It depends on what you download: jre – java runtime environment jdk – java development kit Q:How does Java know OS? A1:You download jre/jdk for you OS. A2:A Java program can ask what OS it is running under.
7
Moving on… We will return to low-level issues later in the semester, and also in later courses. This brief low-level discussion gives context for upcoming topics. Now we turn to some higher-level issues.
8
I have a question for you! What did you have for breakfast today?
9
Activity The goal of this short activity is to demonstrate two things: 1.objects have behaviors 2.sending message to objects can trigger those behaviors
10
Activity details 3 volunteers, a.k.a. objects When I tell you… (I) …you should… (II) …you should… (III) …you should… STARTbegin doing jumping jacks start counting slowly, 0…1…2… etc, but always starting at zero do nothing STOPstop jumping, and stand normally stop counting, but remember where you left off do nothing CONTINUEdo nothingkeep counting up from where you left off do nothing anything elsedo nothing
11
Activity Review Why did we do this activity? What is an object?
12
Activity Review Why did we do this activity? What is an object? Something that has both: –CAPABILITIES –PROPERTIES / STATE
13
Problem solving How do we go about solving a problem? Simplification through abstraction is key. –A process of iterative refinement –Start with little detail in solution –Refine solution, adding more detail
14
Example Describe the game of soccer. http://en.wikipedia.org/wiki/Soccer
15
Executable Model Conceptual Model Apply same idea to developing software solutions:
16
The conceptual model A model of the problem domain Problem domain consists of: –objects properties capabilities –relationships between objects
17
PROGRAM CODE Executable Model MACHINE EXECUTABLE Initial Conceptual Model Problem Domain Iterative refinement of model Compilation A more refined picture (iterative refinement in action!)
18
Tools Editor Compiler Execution environment Integrated Development Environment (IDE) DrJava, Eclipse, NetBeans, Emacs, etc. 18
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.