Lecture 1 Introduction. 1-2 Your world is filled with objects. Many of these objects are controlled by computers. Computers rely on ___________ to determine.

Slides:



Advertisements
Similar presentations
Chapter 15 Debugging. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display Debugging with High Level Languages.
Advertisements

Object Oriented Programming in Java George Mason University Fall 2011
The Object of Java Spring 2003 Wayne State College CSC 340 Lect. #1.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
Lecture #4 Agenda Cell phones off & name signs out Review Questions? Objects The birds-and-the-bees talk.
Lecture 3. Review (What is Class and Object ?) The world of JAVA contains objects The world of JAVA.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
Outline Java program structure Basic program elements
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Programming Languages Structure
Lecture 2: Do you speak Java?. From Problem to Program Last Lecture we looked at modeling with objects! Steps to solving a business problem –Investigate.
9-Aug-15 Vocabulary. Programming Vocabulary Watch closely, you might even want to take some notes. There’s a short quiz at the end of this presentation!
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Java Software Solutions Foundations of Program Design Sixth Edition by Lewis.
Concept of Computer Programming November 2, 2011.
CH1 – A 1 st Program Using C#. Program Set of instructions which tell a computer what to do. Machine Language Basic language computers use to control.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Introduction 01_intro.ppt
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Chapter 10 Introduction to Components. Process Phases Discussed in This Chapter Requirements Analysis Design Implementation ArchitectureFramework Detailed.
O BJECT O RIENTATION F UNDAMENTALS Prepared by: Gunjan Chhabra.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
CIS Computer Programming Logic
An Introduction to Programming and Object-Oriented Design Using Java By Jaime Niño and Fred Hosch Slides by Darwin Baines and Robert Burton.
Java Language and SW Dev’t
Chapter 1 Introduction Dr. Frank Lee. 1.1 Why Study Compiler? To write more efficient code in a high-level language To provide solid foundation in parsing.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
Your First Java Application Chapter 2. 2 Program Concepts Modern object-oriented programs help us build models to manage the complexity found in a problem.
Introduction to C++ Programming Language
CST320 - Lec 11 Why study compilers? n n Ties lots of things you know together: –Theory (finite automata, grammars) –Data structures –Modularization –Utilization.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
What does a computer program look like: a general overview.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Data Structures Using C++1 Chapter 1 -Software Engineering Principles -ADT and Classes.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Chapter 1 Introduction. Chapter 1 - Introduction 2 The Goal of Chapter 1 Introduce different forms of language translators Give a high level overview.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Basic Programming Lingo. A program is also known as a  Sequence of instructions  Application  App  Binary  Executable.
CS101: Introduction to Computer Science Slides adapted from Sedgewick and Wayne Copyright © Your First Java.
90-723: Data Structures and Algorithms for Information Processing Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 1: Introduction Data.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
 Programming - the process of creating computer programs.
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Software Development Introduction
Objective You will be able to define the basic concepts of object-oriented programming with emphasis on objects and classes by taking notes, seeing examples,
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
1.1: Objects and Classes msklug.weebly.com. Agenda: Attendance Let’s get started What is Java? Work Time.
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Chapter 1: Introduction to Computers and Programming.
Lecture 1 Introduction. © 2006 Pearson Addison-Wesley. All rights reserved 1-2 Your world is filled with objects. Many of these objects are controlled.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Maitrayee Mukerji. INPUT MEMORY PROCESS OUTPUT DATA INFO.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Lecture 1b- Introduction
Advanced Computer Systems
GC211 Data structure Lecture 3 Sara Alhajjam.
Dept of Computer Science University of Maryland College Park
Lecture 1 Introduction Richard Gesick.
Sections Basic Concepts of Programming
Key Ideas from day 1 slides
Lecture 1: Introduction to JAVA
Programming without BlueJ Week 12
TRANSLATORS AND IDEs Key Revision Points.
Your First Java Application
Presentation transcript:

Lecture 1 Introduction

1-2 Your world is filled with objects. Many of these objects are controlled by computers. Computers rely on ___________ to determine their execution. Modern computer programming is built from the concept of objects (Object-Oriented Programming OOP). objects Definition (from a computer science perspective) An object is something that has ________ - the object’s attributes or characteristics ________ - any action that is performed by or upon the object example objects a smart watch your student records

1-3 What is the behavior of this object? What are possible attributes for this object? What additional objects are essential in order to place a cell phone call? objects interact with other objects objects can be made from other objects What are the component parts of a cell phone?

1-4 Every object belongs to a group. membership in the group determines behavior & attributes In software such a group of objects is called a class. Every object must belong to some class. for example  The white oak in your front yard belongs to the class of __________.  Wisconsin is an object of type ________.  Your new Tesla is an object from the ________ class.

1-5 AnalysisDesign Implementation Write software for each class. (___________) Learn what the software is supposed to do (software ______________) Discover & design objects/classes (software ____________) test, review, debug

1-6 discover the objects and design/specify classes for the objects A class diagram is a picture of the members of a class. The notation used here is borrowed from the Universal Modeling Language (UML). Class Name attributes/instance variables operations/methods Example FitnessTracker statebehavior

1-7 public class FitnessTracker{ private boolean isOn; private int stepCount; private int stepsPerMile; private int stairStepCount; private HourAndMinute time; public void turnOn() { isOn = true; } public void turnOff() { isOn = false; } // There is code omitted from here } public class FitnessTracker{ private boolean isOn; private int stepCount; private int stepsPerMile; private int stairStepCount; private HourAndMinute time; public void turnOn() { isOn = true; } public void turnOff() { isOn = false; } // There is code omitted from here }

1-8 A ____________ is a collection of instructions that can be executed by a computer. Software is one or more programs or portions of programs. Programming is the act of composing software. Synonym: software development Two Characteristics of Good Software A correct program is one that properly performs the intended task. A readable program is easily understood by other programmers. Each program follows the rules of some programming _________. In this course the programming language that is used is called Java.

1-9 Every programming language has rules for... syntax Syntax is the form of the program. (grammar, punctuation, spelling) semantics Semantics refers to the meaning of the program. The hungry student ate a Chicago-style pizza. Does the following represent a change in syntax or semantics? The hungry student consumed one Chicago-style pizza. Does the following represent a change in syntax or semantics? The hungry students cooked two stuffed crust pizzas. Find the errors below. Are they syntactic or semantic errors? Student the HuNgRy eated a Cicago-style pizzas$

1-10 Text editor Software ToolDeliverable Java compiler Bytecode file ( className.class ) Java Virtual Machine Source code file ( className.java ) Action Programmer types the software into the computer. The software is translated into a form that is “understood” by the computer. The program executes.