Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC204 – Programming I Lecture 1 August 23, 2006.

Similar presentations


Presentation on theme: "CSC204 – Programming I Lecture 1 August 23, 2006."— Presentation transcript:

1 CSC204 – Programming I Lecture 1 August 23, 2006

2 8/23/2006CSC 204 Programming I2 Today’s Topics  Syllabus – an introduction to the course  Roster – introduce yourself to the class  Get started- an intro to programming  [next time – an intro to OOP with Java]

3 8/23/2006CSC 204 Programming I3 About The Course  Instructor Martin Q. Zhao, Ph.D. 201 B Computer Science Building Phone: 301-2425 Email: zhao_m@cs.mercer.edu  Text Java Program Design 5.0 by Cohoon & Davidson Just Enough UNIX by Andersen

4 8/23/2006CSC 204 Programming I4 Course Description  Learn how to program in Java  Structured & object-oriented programming basic syntax and semantics simple data types and control structures classes and objects arrays and graphics  Learn how to analysis, design, implement, test and debug programs

5 8/23/2006CSC 204 Programming I5 Other Elements (for assessment purposes)  Computer Ethics A book will be loaned to you A class session and one lab will be used Test questions in the third mid term and the final exam  AP A test Used as bonus points (up to 20)

6 8/23/2006CSC 204 Programming I6 Grade Breakdown One hour exams (3 at 100 points each) 300 points Comprehensive Final exam 200 points Homework assignments (10 at 10 points each) 100 points Programming assignments (6 total) 240 points Lab assignments (14 total) 140 points Maintain course portfolio 20 points Total1000 points

7 8/23/2006CSC 204 Programming I7 Grading Policy 900 or higherA 870-899B+ 800-869B 770-799C+ 700-769C 600-699D Lower than 600F

8 Chapter 1 Getting Started

9 8/23/2006CSC 204 Programming I9 What is Computer Science?  Is computer science the science of computers? Not exactly. It is the science of information processes and their interactions with the world. It is the systematic study of algorithmic processes that describe and transform information: their theory, design, efficiency, implementation, and application.  What is the main concern of computing? What can be (efficiently) automated?

10 8/23/2006CSC 204 Programming I10 Areas of Computer Science  algorithm and data structure  programming languages  computer architecture  operating systems  software engineering  data and knowledge base systems  artificial intelligence and robotics  human-computer interface

11 8/23/2006CSC 204 Programming I11 Automation Starts from Programs  What is a program?  How can the instructions defined in a program be executed? public class AutomatedProcess { public static void main(String[] args) { System.out.println("Step #1"); System.out.println("Step #2"); System.out.println("Step #3"); }

12 8/23/2006CSC 204 Programming I12 processor Computer Architecture – a simplified view 0 1 2 3 4 5 4194300 4194301 4194302 4194303 disk keyboard display printer memory

13 8/23/2006CSC 204 Programming I13 Number Representation & More  Decimal or binary representation? What does computers use and why? Examples: 4,506 1101 Bit and byte  What is the largest number that can be represented with a byte?  Units of measure Time: ms, ns File size:KB, MB, GB, TB

14 8/23/2006CSC 204 Programming I14 Software & Hardware  Machine language  Assembly language  High-level language

15 8/23/2006CSC 204 Programming I15 Additional Background Info

16 8/23/2006CSC 204 Programming I16 History of Java  Java’s predecessor was Oak, a language designed by James Gosling at Sun Microsystems.  Oak was given the more-marketable name “Java” in January 1995.  Java was officially announced in May 1995.  The first official release of Java occurred in February 1996, when Sun made available version 1.0 of the Java Development Kit.  Java 1.2 (released by the end of 98) and higher is referred to as Java 2.  The latest Java version is 1.5, also known as Java 5.

17 8/23/2006CSC 204 Programming I17 Why Java?  Simple  Object-oriented  Platform independent “Write once, runs everywhere!”  Built-in security  Distributed  Interpreted  J2SE, J2EE, and J2ME targeted for various development needs  It’s free

18 8/23/2006CSC 204 Programming I18 Interesting Links about Java  General reading http://java.sun.com/nav/whatis/index.html ( A quick guide to the Java technology) http://www.zdnet.com/eweek/stories/general/0,11011,28049 67,00.html ( Study: Java to overtake C/C++ in 2002)  For those who have programming experience http://java.sun.com/docs/books/tutorial/  Java API http://java.sun.com/j2se/1.5/docs/api/

19 8/23/2006CSC 204 Programming I19 What Do Computers Do?  A computer system is an integrated collection of hardware and software components.  Hardware refers to the electronics inside a computer.  Software consists of programs that tell the hardware what to do.

20 8/23/2006CSC 204 Programming I20 Types of Computer Systems  Some computer systems are embedded within other objects. These are called embedded systems.  Other computer systems are intended for direct use by humans (users).  Some systems support multiple simultaneous users, while others are limited to one user at a time.  Systems in the latter category are usually called personal computers, although high-end single- user systems are often called workstations.

21 8/23/2006CSC 204 Programming I21 Hardware  Processors Central processing unit, or CPU Specialized processors, such as a graphics processor  Memory Main memory, or RAM (random-access memory) ROM (read-only memory) Hard disks, floppy disks, and other storage media  Peripheral devices Provide an interface to the world outside the system Include keyboards, mice, monitors, printers, and modems

22 8/23/2006CSC 204 Programming I22 Software  Software consists of programs that instruct the hardware how to perform operations.  A program is a step-by-step set of instructions.  Categories of software: Operating systems. A collection of programs that interact directly with the computer’s hardware. Applications. Programs designed to perform useful tasks for humans.  We are writing this kind of programs.  An operating system serves as a bridge between hardware and applications.

23 8/23/2006CSC 204 Programming I23 Platforms  The combination of an operating system and a particular type of CPU is often called a platform.  Software usually works only on a single platform.  Java programs, however, will run on multiple platforms without change. This is usually referred to as good portability.  Most of the time, a computer system has only one operating system but many applications.  Applications are usually designed for one particular version of an operating system.

24 8/23/2006CSC 204 Programming I24 File Systems  A file is a collection of related data.  In many operating systems, a file name includes an extension that indicates the type of data stored in the file.  Common Windows file extensions:.exe (executable program).doc (document).gif,.jpg (image)

25 8/23/2006CSC 204 Programming I25 File Operations  Basic file operations: Create, Edit, Copy, Rename, Delete  A file can be created or edited by using an editor or word processor.  An editor is a program that can create or modify a file containing text (ordinary characters).  A word processor has the added ability to format text. It is usually not used in our class, except you want to make your homework more impressive.

26 8/23/2006CSC 204 Programming I26 Directories  A directory is a place where files can be kept. Directories are also known as folders.  Directories are normally organized in a tree-like fashion.  Basic directory operations: Create a directory Move from one directory to another List the files in a directory


Download ppt "CSC204 – Programming I Lecture 1 August 23, 2006."

Similar presentations


Ads by Google