Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.

Slides:



Advertisements
Similar presentations
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Advertisements

Lecture 0 CSIS10A Overview. Welcome to CSIS10A (5 mins) – Typical format for class meetings New material first (monitors off, notebooks out) Practice.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
Software. What Is Software? software –Also called Computer programs –Are a list of instructions –Instructions are called code –CPU performs the instructions.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 1 Introduction to Object-Oriented Programming and Software Development.
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Chapter 2 Introduction to Systems Architecture. Chapter goals Discuss the development of automated computing Describe the general capabilities of a computer.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
TC2-Computer Literacy Mr. Sencer February 8, 2010.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Topics Introduction Hardware and Software How Computers Store Data
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
COMP 110 Spring Announcements Computers in class on Friday: Lab Office Hours: Monday 12-2 New students see me after class Administrative Changes.
COMP 110: Introduction to Programming Tyler Johnson January 14, 2009 MWF 11:00AM-12:15PM Sitterson 014.
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.
Python 101 Dr. Bernard Chen University of Central Arkansas IT Academic.
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
Introduction to Programming Peggy Batchelor.
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
Computer Parts. Two Basic Parts Hardware & Software.
Programming Concept Chapter I Introduction to Java Programming.
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
1.1 Introduction to Programming academy.zariba.com 1.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
Chapter 1 Computer Systems. Why study Computer Architecture? Examples Web Browsing - how does the browser access pages from a server? How can we create.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Fall 2006Slides adapted from Java Concepts companion slides1 Introduction Advanced Programming ICOM 4015 Lecture 1 Reading: Java Concepts Chapter 1.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
4-Nov-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming Design Topic 1: The Java Environment Maj Joel.
 Instructor: Dr. Jason Nichols –  Office Hours: – 9:30-10:30 M/W/F or by appointment – Business Building.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
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.
Computer Software Types Three layers of software Operation.
CS7 Recitation Cem Akkaya. Outline  Homework-0 in detail  Useful links and tools  Setting up your java environment.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
CSc 201 Introduction to Java George Wells Room 007, Hamilton Building
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Computer Science Reaching Wider Summer School 2012.
Welcome to CSCE Presented by: Brian Russell. Computer Science Interested in making computer programs called software. Interested in making programs and.
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Computer Science A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
ITP 109 Week 2 Trina Gregory Introduction to Java.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to 1. What is Java ? Sun Microsystems Java is a programming language and computing platform first released by Sun Microsystems in The.
Lesson 2: First Java Programs. 2.1 Why Java? Java is one of the most popular programming languages in the world. Java is a modern object-oriented programming.
Java Programming: From the Ground Up
Python Programming Unit -1.
CST 1101 Problem Solving Using Computers
Topics Introduction Hardware and Software How Computers Store Data
Introduction to.
Text by: Lambert and Osborne
Computer System and Programming
Ch 1. A Python Q&A Session Bernard Chen 2007.
Introduction to Java Dept. Business Computing University of Winnipeg
Computer Science I CSC 135.
Mobile Development Workshop
Computers: Hardware and Software
basic Python programs, defining functions
Topics Introduction Hardware and Software How Computers Store Data
Introduction CSC 111.
All assignments and information is posted on web site
Web Application Development Using PHP
Presentation transcript:

Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012

Introduction to Computer Science What do Computing Professionals Do? We write program Developing compute applications that address a need in some activity we humans do.

For example ActivityComputer Application Game DrivingGPS-based navigation software BankFinancial tools for investment ShoppingRecommender system that suggest products Films3D computer graphics

Computer Systems A computer system is a combination of hardware and software that work together to execute application programs More specifically, the computer systems consist of the following components: Computer Hardware Operating Systems Network Programming

Computer Hardware The core hardware component inside the box is the Central Processing Unit (CPU) Random Access Memory (RAM) Hard Drive

Operating Systems The operating system is the software component of a computer system that lies between the hardware and the application programs The OS protects the hardware from misuse by the program The OS provides application programs an interface through which programs can request services from hardware

Network Without an Internet, you cannot sent , browse the web, watch youtube, check facebook…

Program What distinguishes computer and other machines is that computers can be programmed The instructions that are actually executed inside computer is using binary notation (a sequence of 0s and 1s) There are many programming languages out there. Such as C++, C#, JAVA, Perl, and Python.

Python In this semester, we introduce Python programming language and use it to illustrate core computer science concepts and learn programming

Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration

Why do people use Python? Software Quality: Python is designed to be readable, and hence maintainable. Python is deep support for software reuse mechanisms such as OO. Developer productivity: Python code is typically 1/3 to 1/5 the size of equivalent C++ or JAVA code

Why do people use Python? Program portability Most python programs run unchanged on all major computer platforms Support Libraries Component integration Today, Python code can invoke C and C++ libraries, can be called from C and C++, can integrate with Java components. Can communicate over XML, Corba and.NET etc

What can I do with Python? System Programming GUIs Internet Scripting Database Programming Games, Images, AI, XML and more

What are Python’s Technical Strength It’s OO (Object Oriented) It’s free It’s Portable It’s Powerful It’s Easy to use It’s Easy to learn

Hello World Program Implement by three different methods

“Hello World” in C main() { printf("hello, world!\n"); }

“Hello World” in JAVA class myfirstjavaprog { public static void main(String args[]) { System.out.println("Hello World!"); }

“Hello World” in Python print "hello World!"

What is the Downside of Python? Perhaps the only downside to Python is that the execution speed may not always as fast as compiled languages such as C and C++ Python is not compiled all the way down to binary machine code, it compiled to byte code instead.

Who Uses Python Today? Google and Yahoo currently use Python in Internet service IBM use Python for hardware testing Industrial Light and Magic use Python in the production of movie animation For more details, visit

Install Python Go to and download Python 2.7http://python.org/download/

How do you run programs? Three different methods: 1. Interactive Coding 2. Files (such as NotePad, WordPad) 3. Integrated Development Environment (IDE)

Some more Python codes >>> 6+9 >>>6-9 >>> 3/4 >>> 3/4.0 >>> 3**4

Some more Python codes >>> print “Hello World!” >>> print 6+9 >>> print “6+9”

How do you run programs? Code in IDE Step 1. Select “new” in File Step 2. Select “Python Script” then click OK Step 3. Type in print "Hello World!“ Step 4. Select “Save” in file (as “.py”, for example test.py) Step 5. Select “Run” (F5) in file