Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 1.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

Introduction to Computer Programming Nai-Wei Lin Department of Computer Science and Information Engineering National Chung Cheng University.
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What is a Computer?
Computers, Internet and Web Risanuri Hidayat, Ir.,M.Sc.
Three types of computer languages
Introduction to Computers and Programming Using Java -- Fall, 2006 Professor Deena Engel V : Section 3 Office hours: Mondays.
Java Environment (CSS444)
Introduction to Computers and Programming Using Java Professor Deena Engel V : Sections 1 and 4 Office hours: Tuesdays & Thursdays.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
Introduction to Computers and Programming Using Java Professor Deena Engel V : Section 1 Office hours: MW 12:00 - 1:00 in room.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers, the Internet and the Web Outline 1.1Introduction 1.2The.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
C programming language Computer Programming Language 計算機程式設計 Chapter 1 Overview 台大電機系 吳安宇教授 Sept
Introduction to computers and programming RIZWAN REHMAN Assistant Professor Centre For Computer Studies.
1 6 Abacus An early device to record numeric values Blaise Pascal Mechanical device to add, subtract, divide & multiply Joseph Jacquard Jacquard’s Loom,
 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.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI CSCI.
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
Lecture 1: Introduction to Computers. OBJECTIVES In this lecture you will learn:  Basic computer concepts.  The different types of programming languages.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What is a Computer?
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
Spring 2005, Gülcihan Özdemir Dağ BIL104E: Introduction to Scientific and Engineering Computing, Spring Outline 1.1Introduction 1.2What Is a Computer?
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Computer Organization Six logical units in every.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer?
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 2.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
1 Programming Fundamentals How to Program in C++ How to Program in C++
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
Computer Organization & Assembly Language © by DR. M. Amer.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
CS2301:Computer Programming 2
1 Introduction to Computers, the Internet and World Wide Web.
1 Introduction Read D&D Sec 1.8; Sec 1.13 THE Java tutorial -
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
1. an electronic device that manipulates information, or "data“
Chapter 1 An Overview of Computers and Programming Languages.
Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.4 Evolution.
Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department.
Introduction to Computers - Hardware
 2001 Prentice Hall, Inc. All rights reserved.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Lecture 1: Introduction to JAVA
Introduction to Programming
Chapter 1 – Introduction to Computers and C++ Programming
Java programming lecture one
1.6 Machine Languages, Assembly Languages, and High-level Languages
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers, the Internet, and the Web
Outline Introduction What Is a Computer? Computer Organization
Chapter 1 – Introduction to Computers and C++ Programming
Introduction to Computer Programming
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, Internet and the World Wide Web
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 1

Introduction to Computers, the Internet and the World Wide Web

XuanTung Hoang 3 What is a Computer? Computer  Device capable of performing computations and m aking logical decisions  Computers process data under the control of sets of instructions called computer programs Hardware  Various devices comprising a computer  Keyboard, screen, mouse, disks, memory, CD-RO M, and processing units Software  Programs that run on a computer

XuanTung Hoang 4 Computer organization Six logical units in every computer: 1. Input unit Obtains information from input devices (keyboard, mouse) 2. Output unit Outputs information (to screen, to printer, to control other devices) 3. Memory unit Rapid access, low capacity, stores input information 4. Arithmetic and logic unit (ALU) Performs arithmetic calculations and logic decisions 5. Central processing unit (CPU) Supervises and coordinates the other sections of the computer 6. Secondary storage unit (hard disks, USB disks, CD-ROM,…) Cheap, long-term, high-capacity storage Stores inactive programs

XuanTung Hoang 5 Evolution of Operating Systems Batch processing  Do only one job or task at a time Operating systems  Manage transitions between jobs  Increased throughput Amount of work computers process Multiprogramming  Computer resources are shared by many jobs or tasks  Timesharing Computer runs a small portion of one user’s job then moves on to service the next user

XuanTung Hoang 6 Hardware Trends Every year or two the following approximately double:  Amount of memory in which to execute programs  Amount of secondary storage (such as disk storage) Used to hold programs and data over the longer term  Processor speeds The speeds at which computers execute their programs

XuanTung Hoang 7 Personal Computing, Distributed Computing, a nd Client/Server Computing Personal computers  Economical enough for individual Distributed computing  Computing distributed over networks Client/server computing  Sharing of information across computer networks between file servers and clients (personal comput ers).

XuanTung Hoang 8 The Internet and the World Wide Web The Internet: The global network of computers  Originated from a project of US Department of Defense  For sharing information among universities and research organizations  Methods for sharing information (specialized applications, e mail, gopher, WWW, …) World Wide Web (WWW) is the most important method for sharing information:  Locate and view multimedia-based documents on almost any subject  Makes information instantly and conveniently accessible wor ldwide  Possible for individuals and small businesses to get worldwide exposure  Changing the way business is done

XuanTung Hoang 9 Machine Languages, Assembly Languages, an d High-level Languages Three types of programming languages 1. Machine languages Strings of numbers giving machine specific instructions Example: Assembly languages English-like abbreviations representing elementary computer operati ons (translated via assemblers) Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY 3. High-level languages Codes similar to everyday English Use mathematical notations (translated via compilers) Example: grossPay = basePay + overTimePay

XuanTung Hoang 10 The Key Software Trend: Object Technology Objects  Reusable software components that model items i n the real world  Meaningful software units Date objects, time objects, paycheck objects, invoice obj ects, audio objects, video objects, file objects, record obj ects, etc. Any noun can be represented as an object  Very reusable  More understandable, better organized, and easie r to maintain than procedural programming  Favor modularity

XuanTung Hoang 11 Interpreter and Complier Computers need translators to translate high-level language to m achine instructions Interpreter translates programs (written in high-level languages) online :  Translate and execute at the same time  Statement by statement Compiler translates the whole program into machine language be fore execution  Turn program’s text into executable file (in machine language for mat)  When user wants to run the program, he/she loads the executabl e file into computer memory to execute. Portability issue: Different computer hardwares use different instr uction sets (machine language)  We need appropriate interpreter/compiler for each type of machin e

XuanTung Hoang 12 History of Java language Initially, Java language is developed for consumer-electronic devices (embedded syst ems) (in 1991 by Sun Microsystems) It turned out to be good for Web and Internet applications first  Add dynamic contents (Java applet)  Rapid development of distributed applications  Ease of deployment … now Java becomes more and more attracti ve for embedded systems (its primary purpos e)

XuanTung Hoang 13 Java Development Environment 5 phases  Creating a program: use text editor to create program source  Compiling: use compiler to turn program source into bytecode (.cl ass files)  Loading: use class loader to load.class files into memory  Bytecode verification: bytecode verifier examines the bytecode fo r validity and security concerns  Execution: Java Virtual Machine (is a kind of interpreter for bytec odes) executes the bytecodes Combination of compiling and interpreting  Enhance portability of programs: Write Once – Run Anywhere Compact bytecode files are easy to exchange Bytecode verifier guarantees security Just-In-Time compiler enhances performance

XuanTung Hoang 14 Summary Concept of computer, hardware, and software Computer architecture: 6 logical units Operating system, computing architectures, the Inter net, and the WWW Generations of programming languages: 3 generatio ns (machine language, assembly language, high-lev el language) Hardware and software trends Interpreter/compiler and portability Introduction of Java language and its advantages