1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.

Slides:



Advertisements
Similar presentations
Chapter 1 An Overview of Computers and Programming Languages.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
COMP6005 An Introduction to Computing Session Two: Computer Hardware.
 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.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Adrian Ilie COMP 14 Introduction to Programming Adrian Ilie June 24, 2005.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
COMP 14: Intro. to Intro. to Programming May 23, 2000 Nick Vallidis.
Introduction Algorithms and Programming. Computer Programming  A form of problem solving  Or, more accurately, a way to solve problems  What we will.
Chapter 2 Introduction to Systems Architecture. Chapter goals Discuss the development of automated computing Describe the general capabilities of a computer.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Chapter 1 - Introduction. Ch 1Goals To understand the activity of programming To learn about the architecture of computers To learn about machine code.
CS102 Introduction to Computer Programming
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
About the Presentations The presentations cover the objectives found in the opening of each chapter All chapter objectives are listed in the beginning.
Chapter 1 An Overview of Computers and Programming Languages.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
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.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Introduction to Computing Hardware & Software. INSIDE THE COMPUTER Hardware Physical components of the computer. Any part that you can see and touch Examples:
Week 1 Introduction to Computer Science and Object-Oriented Programming COMP 111 George Basham.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Introduction to Computer Systems and the Java Programming Language.
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
© 2006 Pearson Education Chapter 1: Computer Systems.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Java Camp II (Jun th ) Instructor: Dr. Chengcui Zhang TAs: Sangita Pillay: Soma.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
Georgia Institute of Technology Introduction to Programming Part 1 Barb Ericson Georgia Institute of Technology Aug 2005.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
CS 177 Recitation Week 1 – Intro to Java. Questions?
ITP 109 Week 2 Trina Gregory Introduction to Java.
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.
Introduction to Computer Science What is Computer Science? Getting Started Programming.
Java Programming: From the Ground Up
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
Introduction
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
About the Presentations
Chapter 1: An Overview of Computers and Programming Languages
Computer Science I CSC 135.
Presentation transcript:

1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared by B. Ericson.

Outline  What is Computer Science  Some of the roles of Computer Science in our society  What is in a computer  What is programming  What is a program  What a compiler does  Some specificities of Java 2

What is Computer Science? 3  The design, analysis, implementation, …  of algorithms,  that solve problems. Why study Computer Science?  computing is part of everything we do  develops your problem solving skills  Lots of jobs!  Network and data analysts, software engineers are projected to be some of the fastest growing professions,

Roles of Computer Science  Maintaining the technical infrastructure  network, software  But also many algorithmic challenges  AI for games  search or auction algorithms (Google, Bing)  medical imaging  cryptology (RIM)  low-power chips 4

CPU and RAM 5  Central Processing Unit (CPU) (processor) executes instructions  Main Memory (RAM)  Internal storage that holds the programs (instructions and data) currently executed  Made of switches, each of which represents 0 or 1 and is called a bit (binary digit)  Information is lost when power is turned off

External memory and I/O 6  Secondary Memory: hard disks, CDs, DVDs, USB sticks  Provide long-term storage  Organized as files, each of which has a file name and a folder (directory) that contains it.  Input/Output (I/O) units: keyboard, mouse, screen, printer, webcam, etc.  Used for communications with the user

What is programming? 7  Programming is the process of creating detailed instructions that a computer can execute to accomplish some task  It is much like:  writing a recipe for your favorite dish  giving someone directions to your house  making a robot do what you want

What is a program? 8  Programs consist of  Instructions to perform a task  Data values used in performing the task  Programs are written in a language that a computer can understand  System.out.println(…) prints to the screen public class HelloWorld { public static void main(String[ ] args) { System.out.println("Hello World!"); }

High-level languages 9  Programmers usually write programs in high-level languages  Java, C, C++, C#, Visual Basic, Python, Scheme, Lisp, Pascal, Fortran, etc. etc.  People-oriented: created to make it easier for programmers to write complicated programs  Machine independent: not written for any particular kind of computer (Intel, Mac, etc.)  But computers do not understand high-level languages directly

Machine language 10  The machine language consists of the set of instructions that the CPU can execute directly  Instructions to the CPU (to add, subtract, read, store, etc) are made up of 0’s and 1’s  Machine dependent: each type of computer has its own machine language

High-level to machine language 11 High-Level Language Program (source code) Compiler Machine Language Program (executable code) CPU

Java 12  A high-level language developed by Sun Microsystems in the early 1990s  Cross-platform  Object-oriented (later)  Widely used in business, science and education  One of the fastest-adopted technologies of all time!  Different from previous high-level languages

From program to execution 13 Java Compiler CPU Java source code Bytecode Java Virtual Machine

Summary 14  Terminology introduced:  CPU, RAM  Bit  Program  High-Level Language  Machine Language  Compiler  Bytecode  Java Virtual Machine