Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.

Slides:



Advertisements
Similar presentations
Chapter 1 These slides for CSE 110 Sections are based in part on the textbook-authors’ slides, which are copyright by the authors. The authors state that.
Advertisements

Object Orientated Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
CHAPTER 1 INTRODUCTION GOALS  To understand the activity of programming  To learn about the architecture of computers  To learn about machine code and.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Computers: Tools for an Information Age
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
Programming Logic and Design Fourth Edition, Introductory
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
Getting Started with Java
CS102 Introduction to Computer Programming
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.
1 Intro to Computer Science I Chapter 1 Introduction to Computation Algorithms, Processors, and Programs.
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2013 by John Wiley & Sons. All rights reserved. INTRODUCTION CHAPTER Slides by Donald W. Smith TechNeTrain.com Final Draft Oct. 15,
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
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.
Big Java by Cay Horstmann Copyright © 2008 by John Wiley & Sons. All rights reserved. Chapter One: Introduction.
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
©2000, John Wiley & Sons, Inc. Horstmann/Java Essentials, 2/e Chapter 1: Introduction 1 Chapter 1 Introduction.
Chapter 1 CSIS-120: Java Intro. What is Programming?  A: It is what makes computer so useful.  The flexibility of a computer is amazing  Write a term.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Big Java by Cay Horstmann Copyright © 2009 by John Wiley & Sons. All rights reserved. Chapter 1 – Introduction.
ICOM 4015: Advanced Programming Lecture 1 Big Java by Cay Horstmann Copyright © 2009 by John Wiley & Sons. All rights reserved. Reading: Chapter One: Introduction.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Big Java by Cay Horstmann Copyright © 2009 by John Wiley & Sons. All rights reserved. Chapter 1 – Introduction ( ปรับปรุง )
Copyright © 2014 by John Wiley & Sons. All rights reserved.1 Chapter 1 - Introduction.
1 Problem Solving with C++ The Object of Programming Walter Savitch Chapter 1 Introduction to Computers and C++ Programming Slides by David B. Teague,
CHAPTER 1 INTRODUCTION. CHAPTER GOALS To understand the activity of programming To understand the activity of programming To learn about the architecture.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Fall 2006Slides adapted from Java Concepts companion slides1 Introduction Advanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1.
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.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
INM205 Object Oriented Programming in JAVA Dr. Michael Casey Department of Computing.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 Introduction. Chapter Goals To understand the activity of programming To learn about the architecture of computers To learn about machine code.
CHAPTER 1 INTRODUCTION. CHAPTER GOALS To understand the activity of programming To learn about the architecture of computers To learn about machine code.
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Getting Started With Java September 22, Java Bytecode  Bytecode : is a highly optimized set of instructions designed to be executed by the Java.
1 Overview of Programming Principles of Computers.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Introducing Java Chapter 3 Review. Why Program in Java? Java, is an object-oriented programming language. OOP languages evolved out of the need to better.
Chapter 3 Introducing Java. Objectives and Goals 1. Define terminology associated with object- oriented programming. 2. Explain why Java is a widely used.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Software Engineering Algorithms, Compilers, & Lifecycle.
Basic Concepts: computer, program, programming …
Chapter 1 – Introduction
Department of Computer Science,
Introduction To recognize compile-time and run-time errors
Introduction to Computers and C++ Programming
Chapter One: Introduction
Engineering Problem Solving With C An Object Based Approach
GC101 Introduction to computer and program
CSCI-235 Micro-Computer Applications
Introduction
Chapter Goals To learn about computers and programming
Chapter 1 – Introduction
Java programming lecture one
Goals To learn about computers and programming
Slides by Donald W. Smith
Introduction Java Chapter 3.
Chapter 1 Introduction(1.1)
Programming Fundamentals Lecture #3 Overview of Computer Programming
Computer Programming-1 CSC 111
Presentation transcript:

Chapter 1 Introduction

Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time errors to describe an algorithm with pseudocode

1.1 Computer programs Computers execute very basic instructions in rapid succession. A computer program is a sequence of instructions and decisions. Programming is the act of designing and implementing computer programs.

1.2 the anatomy of a Computer The central processing unit (CPU) performs program control processing. Storage devices include memory and secondary storage.

1.3 the Java programming language Java was originally designed for programming consumer devices, but it was first successfully used to write Internet applets. Java was designed to be safe and portable, benefiting both Internet users and students. Java programs are distributed as instructions for a virtual machine, making them platform- independent. Java has a very large library. Focus on learning those parts of the library that you need for your programming projects.

1.4 Becoming Familiar with Your programming environment Set aside some time to become familiar with the programming environment that you will use for your class work. An editor is a program for entering and modifying text, such as a Java program. Java is case sensitive. You must be careful about distinguishing between upper- and lowercase letters. The Java compiler translates source code into class files that contain instructions for the Java virtual machine. Develop a strategy for keeping backup copies of your work before disaster strikes.

Describe the building blocks of a simple program Classes are the fundamental building blocks of Java programs. Every Java application contains a class with a main method. When the application starts, the instructions in the main method are executed. Each class contains declarations of methods. Each method contains a sequence instructions. A method is called by specifying the method and its arguments. A string is a sequence of characters enclosed in quotation marks.

Classify program errors as compile- time and run-time errors. A compile time error is a violation of the programming language rules that is detected by the compiler. A run time error causes a program to take an action that the programmer did Not intend.

Write pseudo code for simple algorithms. An algorithm for solving a problem is a sequence of steps that is unambiguous, executable, and terminating. Pseudo code is an informal description of a sequence of steps for solving a problem.