Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mrs. Ulshafer August, 2013 Java Programming Chapter 1.

Similar presentations


Presentation on theme: "Mrs. Ulshafer August, 2013 Java Programming Chapter 1."— Presentation transcript:

1 Mrs. Ulshafer August, 2013 Java Programming Chapter 1

2 What is a Computer? An Electronic machine Accepts information Data Processes information based on instructions Provides results or new information

3 Program List of instructions written in a special language Lets computers solve problems Specific order to be performed Tells computer what to do What is a Computer?

4 Journal 1: Prompt: What do you expect to get out of this course? What are you most looking forward to this semester?

5 Uses of 1 st Computers Calculators Vs Computers Computers make DECISIONS Navigation Census Bureau Military

6 Hardware: (Physical Components) Base Unit CPU Storage Devices CD-ROM, USB, ZIP Hard Disk Contained within base unit The Modern Computer

7 Hardware: (Physical Components) Keyboard, mouse and disk drives Input of data Monitor View input or output Software – Programs that tell computer what to do The Modern Computer

8 4 Subsystems of a Computer Input Devices tools that accept data Memory Electronic storage of instructions and data

9 4 Subsystems of a Computer Central Processing Unit (CPU) Processes data Controls flow of data Output Devices Tools where data can be displayed Monitors printers

10 Directions of Data Flow Input Output CPU Memory

11 Read-Only Memory (ROM) Basic Operating Instructions Permanent part CAN NOT BE CHANGED Random Access Memory (RAM) Main memory Stored temporarily Lost after shut down

12 Memory Auxiliary Memory Storage long term storage Reusable Thumb Drives CD – ROM Hard Drive

13 Memory Workings of Memory access in Auxiliary copy into RAM copy into registers Actions taken copied back into RAM copied back in auxiliary

14 CPU Directs all activities Information flows through “BRAIN” only follows instructions Can NOT think Add or compare numbers only Changes operations into addition Solves problems in nanoseconds

15 Number Systems Base 2 Binary Uses only 2 digits 0 for off, 1 for on states of electrical circuits powers of 2

16 Explain what the following means: “There are only 10 types of people in the world: Those who understand binary and those that don’t”

17 Storing Data Binary system stores data Each 0 or 1 is a bit (BI-nary digi-T) Bytes: RAM Measured in bytes MB- GB- TB– 8 Bit Unit 2 20 = 1, 000, 000 2 30 = 1, 000, 000, 000 2 40 = 1,000, 000, 000, 000

18 Storing Data ASCII Code American Standard Code for Information Interchange Letters, numbers and characters are turned into numbers which are turned into binary code Always 1 byte long (8 bits)

19 Operating Systems Windows 7- GUI Special program Graphical user interface (GUI) Pictures (icons) to create a user- friendly environment Provides applications and tools Object base operating system Each item that appears is an object

20 Programming Languages Machine Language Lowest Level Directly typing in 0s and 1s Depends on CPU type High – Level Languages FORTRAN, COBOL, PASCAL, C, C++ Chunks of normal language Compiler translates into machine

21 Java Started for applets- downloadable programs Object-Oriented Language Data described by objects Then told what to do organized Must have a class Must have methods – instructions

22 Java Editor – place to enter/modify Java text Source Code Java written text Compiler - Translates into Java bytecode - Enforces rules of language - Checks for errors in syntax and some logic

23 Java Debug- Process of removing errors from the program Virtual Machine Reads and runs bytecode Portable - can run programs on any platform (mac, linux, windows) Safe


Download ppt "Mrs. Ulshafer August, 2013 Java Programming Chapter 1."

Similar presentations


Ads by Google