CH01 - Chapter 1 Java: an Introduction to Computer Science...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Chapter 1 Background information important regardless of programming language Introduction to Java Introduction to Computers and Java Objects Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Computer Basics Computer system: hardware + software Hardware: the physical components Software: the instructions that tell the hardware what to do Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Common Hardware Components Processor (CPU) Central Processing Unit Interprets and executes the instructions Memory main & auxiliary holds data and instructions I nput device(s) mouse, keyboard, etc. O utput device(s) video display, printer, etc. CPU and memory are physically housed together Standard Hardware Organization Memory (main & auxiliary) Processor (CPU) Input Devices (such as mouse and keyboard) Output Devices (such as video display or printer) Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Physical Organization Keyboard Monitor Chassis CPU memory disk drives I/O connectors etc. Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Two Kinds of Memory Main working area temporarily stores program and data (while program is executing) Auxiliary permanent (more or less) saves program and results includes floppy & hard disk drives, CDs, tape, etc. Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Main Memory Organization Bit = one binary digit Binary digit can have only one of two values, 0 or 1 Byte = 8 bits Byte Addressable Main memory is a list of numbered locations that contain one byte of data in each location Number of bytes per data item may vary Address Data Byte 3021 1111 0000 Item 1: 2 bytes stored 3022 1100 1100 3023 1010 1010 Item 2: 1 byte stored 3024 1100 1110 Item 3: 3 bytes stored 3025 0011 0001 3026 1110 0001 3027 0110 0011 Item 4: 2 bytes stored 3028 1010 0010 3029 Next Item, etc. Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Aux iliary Me mo ry Or gani zation Files Files Files Files Sub directory Sub directory Files Sub directory Files Sub directory Sub directory Sub directory Ma in (Root ) Directory / Folder Auxiliary Memory Organization [file systems for users] Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Running a Program Program Computer Data (input for the program) Output Program a set of instructions for a computer to follow Chapter 1 Java: an Introduction to Computer Science & Programming - Walter Savitch Many Types of Programs User-created applications Existing applications word-processor/editor web browser compiler or assembler etc....
View Full Document

This note was uploaded on 02/11/2012 for the course CSE 1001 taught by Professor Chan during the Spring '08 term at FIT.

Page1 / 50

CH01 - Chapter 1 Java: an Introduction to Computer Science...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online