Programming 1 1. Introduction to object oriented programming and problem-solving.

Slides:



Advertisements
Similar presentations
Overview of Programming and Problem Solving ROBERT REAVES.
Advertisements

Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Overview of Computers & Programming Languages Chapter 1.
CSCI 1412 Tutorial 1 Introduction to Hardware, Software Parminder Kang Home:
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Chapter 1 Introduction to Object-Oriented Programming.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
Chapter 1 Introduction to Object- Oriented Programming and Problem Solving.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Aalborg Media Lab 21-Jun-15 Software Design Lecture 1 “ Introduction to Java and OOP”
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 1: Getting Started by George Lamperti & BU Faculty.
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Course: Introduction to Computers
Chapter 1 - Introduction. Ch 1Goals To understand the activity of programming To learn about the architecture of computers To learn about machine code.
COMP Computer Basics Yi Hong May 13, 2015.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
1 Chapter-01 Introduction to Computers and C++ Programming.
Chapter 1 An Overview of Computers and Programming Languages.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
CSCI 1200 / ASSC 1000 Software program : instructions for hardware. makes computers useful. early computers : re-wiring. today : programming.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 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.
111 © 2002, Cisco Systems, Inc. All rights reserved.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
1 Overview of Programming and Problem Solving Chapter 1.
Chapter 1 Introduction to Computers and C++ Programming Goals: To introduce the fundamental hardware and software components of a computer system To introduce.
Visual C++ Programming: Concepts and Projects
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
Liang, Introduction to C++ Programming, (c) Chapter 1 Introduction to Computers, Programs, and C++
Tolo-e-aftab higher education 1 th semester Bcs 1/2/1392 MINISTRY OF HIGHER EDUCATION.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
CS-303 Introduction to Programming
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
Chapter 1 An Overview of Computers and Programming Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Introduction to Computer Programming using Fortran 77.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to Computer Programming By: Mr. Baha Hanene Chapter 1.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Lecture 1 Introduction Richard Gesick.
CSCI-235 Micro-Computer Applications
LESSON 1 Introduction to Programming Language
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Introduction
Introduction to Programming
Course: Introduction to Computers
Java programming lecture one
Presentation transcript:

Programming 1 1. Introduction to object oriented programming and problem-solving

Introduction Introduction to computers and programming Introduction to object oriented problem-solving Creating a Java program

Computers Physically a computer comprises of: A processor with memory The memory stores programs and data The processor executes the programs Input devices E.g. keyboard, mouse, scanner, barcode reader Output devices E.g. screen, printer Communications devices Modem, network card

Computer programs Perform tasks that would be otherwise less efficient, more difficult or impossible E.g. Stock control, satellite control, computer games, www, banking, eCommerce, mobile phones

Programming languages 1 Machine code The binary code that is directly executed by the processor - not designed for humans! Assembly language Machine code made more readable (e.g. ADD 12, 32) – needs to be translated into machine code

Programming languages 2 High-level languages Designed for humans to read and write, e.g. Fortran, Cobol, Basic, C, Java Provide higher level functionality than machine code Needs to be translated into machine code by an compiler and/or interpreter

Software Development The process of constructing a computer application Lifecycle: Gather requirements Design a solution Implement the design in a programming language May be linear (do each task once in order) or iterative (repeat each task in a cycle)

Software Design Break down a complex problem into smaller ‘chunks’ that are more easily solved Structured design Break down complex task into smaller ones Object-oriented design Break down an application into smaller ‘objects’ that provide specific functionality

Object-oriented design Objects Self-contained entities that often represent something in the real world Consist of attributes and methods Attributes are data that tell us something about the object Methods are the operations that an object can perform or can be performed on it

Example objects The train, bus or car that took you to University today The computer that you use in the lab A bank account A personnel record What are their attributes and methods?

Classes A class is a sort of template for an object. There are many bank accounts but they all have the same attribute and methods. The attributes will have different values but they are essentially the same. We say that an object is an instantiation of a class.

Organising classes into libraries - reuse In Java programming, we define classes that we may want to use again into packages (a package is a group of related classes) Visualisation of class libraries

Creating a Java program 1. Write the program in an editor 2. Compile the program 3. Run the program 4. Go back to 1 and fix the errors! All of these tasks can be performed using an Integrated Development Environment (IDE)

JCreator The IDE that we will use is called JCreator