CSC204 – Programming I Lecture 1 August 23, 2006.

Slides:



Advertisements
Similar presentations
An Overview of the Computer System
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Copyright © 2000 W. W. Norton & Company. All rights reserved. 1 Chapter 1: Getting Started Java Programming FROM THE BEGINNING Chapter 1 Getting Started.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
CHAPTER 1 INTRODUCTION GOALS  To understand the activity of programming  To learn about the architecture of computers  To learn about machine code and.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
16 March, 2000 CS1001 Lecture 1 Introduction - Syllabus History of Computers Computer Components.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1 Introduction to computers Overview l · Grading Policy »Cheating Rules (serious concern) »Examinations and Fixation of Timings »Quizzes »Homework Assignments.
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#1) By Dr. Syed Noman.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CS102 Introduction to Computer Programming
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
1 CSC 1401 S1 Computer Programming I Hamid Harroud School of Science and Engineering, Akhawayn University
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
111 © 2002, Cisco Systems, Inc. All rights reserved.
CISC105 General Computer Science Class 1 – 6/5/2006.
CHAPTER FOUR COMPUTER SOFTWARE.
Introduction to Interactive Media Interactive Media Tools: Software.
Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Chapter 1: Getting Started Java Programming FROM THE BEGINNING Copyright © 2000 W. W. Norton & Company. All rights reserved. 1 Chapter 1 Getting Started.
1 CSC204 – Programming I Lecture 2 Intro to OOP with Java.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Lecture 3 January 14, 2002 CSC Programming I Fall 2001.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
Chapter 1: Getting Started Java Programming FROM THE BEGINNING Copyright © 2000 W. W. Norton & Company. All rights reserved. 1 Chapter 1 Getting Started.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Scott Marino MSMIS Kean University MSAS5104 Introduction to Programming with Data Structures and Algorithms Week 2 Scott Marino.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
By Tom and James. Hardware is a physical part of the system that you can pick up and move. There are two types of hardware, external and internal. External.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Programming with Java. Chapter 1 Focuses on: –components of a computer –how those components interact –how computers store and manipulate information.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
An Overview of the Computer System
Chapter 1 Introduction to Computers, Programs, and Java
Lecture 1: Introduction to JAVA
Computer System and Programming
Getting Started Chapter 1 Copyright © 2000 W. W. Norton & Company.
Java programming lecture one
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
CS190/295 Programming in Python for Life Sciences: Lecture 1
Computer Science I CSC 135.
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Computer Programming-1 CSC 111
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

CSC204 – Programming I Lecture 1 August 23, 2006

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]

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

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

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)

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

8/23/2006CSC 204 Programming I7 Grading Policy 900 or higherA B B C C D Lower than 600F

Chapter 1 Getting Started

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?

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

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"); }

8/23/2006CSC 204 Programming I12 processor Computer Architecture – a simplified view disk keyboard display printer memory

8/23/2006CSC 204 Programming I13 Number Representation & More  Decimal or binary representation? What does computers use and why? Examples: 4, 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

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

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

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  Java was officially announced in May  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.

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

8/23/2006CSC 204 Programming I18 Interesting Links about Java  General reading ( A quick guide to the Java technology) 67,00.html ( Study: Java to overtake C/C++ in 2002)  For those who have programming experience  Java API

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.

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.

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

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.

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.

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)

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.

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