Chapter 1 Introduction toComputers, Programs, and Java   Liang, Introduction to Java Programming, Eighth Edition, (c) 2011...
What is a Computer?                                                              Bus   Storage                            ...
How Data is Stored?   Memory address         Memory content                .           .                .           .     ...
What is a Computer?                                                              Bus   Storage                            ...
Programs &Programming          LanguagesMachine Language 1101101010011010Assembly Language                              Ad...
Programs &Programming          LanguagesMachine Language 1101101010011010Assembly Language                              Ad...
Programs &Programming          LanguagesMachine Language 1101101010011010High-Level Language                              ...
Operating Systems                                    User                        Application Programs                     ...
Why Java?Developed      by Sun Microsystems (now Oracle)Java   is a general purpose programming language.  Platform    ...
CompanionWebsite          Characteristics of Java  Java Is Simple  Java Is Object-Oriented  Java Is Distributed  Java ...
JDK Editions Java   Standard Edition (J2SE)  – J2SE can be used to develop client-side standalone    applications or appl...
Popular Java IDEs Notepad  – Javac         -- the Java compiler      MyProgram.java                  -> javac -> MyProgr...
Assignment Createaccounts for the Book’s online sites (p2 of Syllabus)  – Videos  – Text book site Download  JDK 7u w/ N...
kg0000931 Chapter 1 introduction to computers, programs part ia
kg0000931 Chapter 1 introduction to computers, programs part ia
kg0000931 Chapter 1 introduction to computers, programs part ia
kg0000931 Chapter 1 introduction to computers, programs part ia
Upcoming SlideShare
Loading in...5
×

kg0000931 Chapter 1 introduction to computers, programs part ia

743
-1

Published on

Liang Chaoter 1 Part p

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
743
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Data of various kinds, such as numbers, characters, and strings, are encoded as a series of bits (zeros and ones). Computers use zeros and ones because digital devices have two stable states, which are referred to as zero and one by convention. The programmers need not to be concerned about the encoding and decoding of data, which is performed automatically by the system based on the encoding scheme. The encoding scheme varies. For example, character ‘J’ is represented by 01001010 in one byte. A small number such as three can be stored in a single byte. If computer needs to store a large number that cannot fit into a single byte, it uses a number of adjacent bytes. No two data can share or split a same byte. A byte is the minimum storage unit.
  • Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.
  • Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.
  • Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.
  • kg0000931 Chapter 1 introduction to computers, programs part ia

    1. 1. Chapter 1 Introduction toComputers, Programs, and Java Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 1
    2. 2. What is a Computer? Bus Storage Communication Input Output Memory CPU Devices Devices Devices Devicese.g., Disk, CD, e.g., Modem, e.g., Keyboard, e.g., Monitor, and Tape and NIC Mouse Printer Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 6
    3. 3. How Data is Stored? Memory address Memory content . . . . . . 2000 01001010 Encoding for character ‘J’ 2001 01100001 Encoding for character ‘a’ 2002 01110110 Encoding for character ‘v’ 2003 01100001 Encoding for character ‘a’ 2004 00000011 Encoding for number 3Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 7
    4. 4. What is a Computer? Bus Storage Communication Input Output Memory CPU Devices Devices Devices Devicese.g., Disk, CD, e.g., Modem, e.g., Keyboard, e.g., Monitor, and Tape and NIC Mouse Printer Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 8
    5. 5. Programs &Programming LanguagesMachine Language 1101101010011010Assembly Language Add(R1, R2)High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 9
    6. 6. Programs &Programming LanguagesMachine Language 1101101010011010Assembly Language Add(R1, R2)High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 10
    7. 7. Programs &Programming LanguagesMachine Language 1101101010011010High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 11
    8. 8. Operating Systems User Application Programs Operating System HardwareLiang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 12
    9. 9. Why Java?Developed by Sun Microsystems (now Oracle)Java is a general purpose programming language. Platform independent Byte Code Java Virtual Machine Interpreted Object OrientedJava is the Internet programming languageJava is an Application development language Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 13
    10. 10. CompanionWebsite Characteristics of Java  Java Is Simple  Java Is Object-Oriented  Java Is Distributed  Java Is Interpreted  Java Is Robust  Java Is Secure  Java Is Architecture-Neutral  Java Is Portable  Javas Performance  Java Is Multithreaded  Java Is Dynamic www.cs.armstrong.edu/liang/intro8e/JavaCharacteristics.pdf Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 14
    11. 11. JDK Editions Java Standard Edition (J2SE) – J2SE can be used to develop client-side standalone applications or applets. Java Enterprise Edition (J2EE) – J2EE can be used to develop server-side applications such as Java servlets and Java ServerPages. Java Micro Edition (J2ME). – J2ME can be used to develop applications for mobile devices such as cell phones.This book uses J2SE to introduce Java programming. Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 15
    12. 12. Popular Java IDEs Notepad – Javac -- the Java compiler  MyProgram.java -> javac -> MyProgram.class – Java --- the Java Virtual Machine java MyProgram --- executes you program Textpad NetBeans Open Source by Sun Eclipse Open Source by IBM Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 16
    13. 13. Assignment Createaccounts for the Book’s online sites (p2 of Syllabus) – Videos – Text book site Download JDK 7u w/ NetBeans Download Textpad v5.4.2 See Blackboard Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 17
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×