Lecture 1 Introduction. © 2006 Pearson Addison-Wesley. All rights reserved 1-2 Your world is filled with objects. Many of these objects are controlled.

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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Operational Semantics.
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
Programming Languages Structure
Chapter 1 Introduction. © 2004 Pearson Addison-Wesley. All rights reserved1-2 Outline Computer Processing Hardware Components Networks The Java Programming.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
Java How to Program, 9/e Instructor: José M. Reyes Álamo © by Pearson Education, Inc. All Rights Reserved.
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.
C++ Crash Course Class 1 What is programming?. What’s this course about? Goal: Be able to design, write and run simple programs in C++ on a UNIX machine.
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.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
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.
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
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.
© 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.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
What does a computer program look like: a general overview.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
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.
Lecture 1 Introduction. 1-2 Your world is filled with objects. Many of these objects are controlled by computers. Computers rely on ___________ to determine.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
SWE 316: Software Design and Architecture Objectives Lecture # 18 Introduction to Components SWE 316: Software Design and Architecture To learn:  benefits.
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.
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.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
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.
Chapter 1: Introduction to Computers and Programming.
© 2011 Pearson Education, publishing as Addison-Wesley Chapter 1: Computer Systems Presentation slides for Java Software Solutions for AP* Computer Science.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Java Programming Fifth Edition Chapter 1 Creating Your First Java Classes.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Lecture 1b- Introduction
Advanced Computer Systems
Dept of Computer Science University of Maryland College Park
Lecture 1 Introduction Richard Gesick.
GC101 Introduction to computer and program
Lecture 1: Introduction to JAVA
Your First Java Application
Presentation transcript:

Lecture 1 Introduction

© 2006 Pearson Addison-Wesley. All rights reserved 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 state - the object’s attributes or characteristics behavior - any action that is performed by or upon the object examples a thermostat your student records

© 2006 Pearson Addison-Wesley. All rights reserved 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?

© 2006 Pearson Addison-Wesley. All rights reserved 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 Ferrari is an object from the ________ class.

© 2006 Pearson Addison-Wesley. All rights reserved 1-5 AnalysisDesign Implementation Write software for each class. (program) Learn what the software is supposed to do (software requirements) Discover & design objects/classes (software architecture) test, review, debug

© 2006 Pearson Addison-Wesley. All rights reserved 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 PortableMusicPlayer boolean isActive int lengthOfPlaylist int selectedSong int secondsPlayedOfSong void turnOn() void turnOff() void play() void stop() void pause() void advanceToNextSong()...

© 2006 Pearson Addison-Wesley. All rights reserved 1-7 public class PortableMusicPlayer { private boolean isActive; private int lengthOfPlaylist; private int selectedSong; private int secondsPlayedOfSong; public void turnOn() { isActive = true; } public void turnOff() { isActive = false; } // There is code omitted from here } public class PortableMusicPlayer { private boolean isActive; private int lengthOfPlaylist; private int selectedSong; private int secondsPlayedOfSong; public void turnOn() { isActive = true; } public void turnOff() { isActive = false; } // There is code omitted from here } class name

© 2006 Pearson Addison-Wesley. All rights reserved 1-8 A program 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 language. In this course the programming language that is used is called Java. IMPORTANT: The focus of this course is programming, not Java!

© 2006 Pearson Addison-Wesley. All rights reserved 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$

© 2006 Pearson Addison-Wesley. All rights reserved 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.