Introduction. Instructor: Jia Xu CSCI-135

Similar documents
Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

OOPs: The Harsh Realities of Programming

Chapter 1: Introduction

CSC180: Lecture 2. Wael Aboulsaadat.

MA400: Financial Mathematics

EP241 Computer Programming

Computer Principles and Components 1

Your first C and C++ programs

Scientific Computing

San José State University Department of Computer Science CS-144, Advanced C++ Programming, Section 1, Spring 2018

0 Introduction: Computer systems and program development

BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1

Introduction to Computers and Programming Languages. CS 180 Sunil Prabhakar Department of Computer Science Purdue University

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Computers in Engineering COMP 208. Computer Structure. Computer Architecture. Computer Structure Michael A. Hawker

Introduction to C++ Professor Hugh C. Lauer CS-2303, System Programming Concepts

C++ Programming for Programmers

INTRODUCTION TO THE COURSE

Unit 1 : Principles of object oriented programming

Classes, Constructors, etc., in C++

Fundamentals of Programming (C)

Derived Classes in C++

Object-Oriented Programming CSCI-UA

Introduction to Computers, the Internet and the Web Pearson Education, Inc. All rights reserved.

Dr. Md. Humayun Kabir CSE Department, BUET

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming

Topic 1: Programming concepts

Outline. Introduction to Programming (in C++) Introduction. First program in C++ Programming examples

CS313T ADVANCED PROGRAMMING LANGUAGE

C++ Programming for Programmers using Microsoft Visual C Professional

Learn C programme. C Programming language. Cloud1 C tutorial

1) Which of the following is an example of a programming language? 1) A) Microsoft Word B) English C) HTML D) Java

COMP322 - Introduction to C++ Lecture 01 - Introduction

CSCI 1060U Programming Workshop

Microsoft Visual Basic 2005: Reloaded

CS120 Computer Science I. Instructor: Jia Song

CSE 504: Compiler Design

CS133 C Programming. Instructor: Jialiang Lu Office: Information Center 703

Object Oriented Programming

Microsoft Visual Basic 2005: Reloaded

Welcome to Solving Problems with Computers I

Course Administration

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

Object-Oriented Programming CSCI-UA

Administration Computers Software Algorithms Programming Languages

by Pearson Education, Inc. All Rights Reserved.

10265: Developing Data Access Solutions with Microsoft Visual Studio 2010 Duration: 5 Days Method: Instructor-Led

Lecture 09. Ada to Software Engineering. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Spring 2003 Instructor: Dr. Shahadat Hossain. Administrative Matters Course Information Introduction to Programming Techniques

Compulsory course in Computer Science

Chapter 11 Program Development and Programming Languages

Computer Fundamentals

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Introduction to Computers and Java

The University Of Michigan. EECS402 Lecture 06. Andrew M. Morgan. Savitch Ch. 6 Intro To OOP Classes Objects ADTs.

Programming 1. Lecture 1 COP 3014 Fall August 28, 2017

Partha Sarathi Mandal

Introduction to Computers and Java

CS240: Programming in C

C H A P T E R 1. Introduction to Computers and Programming

BIL 104E Introduction to Scientific and Engineering Computing. Lecture 1

Second-generation: Assembly language. Figure 6.1 Generations of programming languages. Assembly Language Characteristics.

Chapter 1 Introduction to Computers and C++ Programming

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

EKT 120/4 Computer Programming KOLEJ UNIVERSITI KEJURUTERAAN UTARA MALAYSIA

Advanced Programming CMPS 109

CSCI 3136 Principles of Programming Languages

1. Describe History of C++? 2. What is Dev. C++? 3. Why Use Dev. C++ instead of C++ DOS IDE?

Lecture 1: Preliminaries

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Introduction to Computers and Java. Objectives. Outline. Harald Gall, Prof. Dr. Institut für Informatik Universität Zürich.

Chapter 6: Programming Languages

Data Structures. Subodh Kumar. Dept of Computer Sc. & Engg. IIT Delhi. Bharti 422)

Continuations provide a novel way to suspend and reexecute

AP Computer Science A: Java Programming

CSCE150A. Administrivia. Overview. Hardware. Software. Example. Program. Pseudocode. Flowchart. Control Structures. Hello World Program CSCE150A

Computer Science & Engineering 150A Problem Solving Using Computers

Programming 1 - Honors

Object Orientated Analysis and Design. Benjamin Kenwright

Chapter 1: Why Program? Computers and Programming. Why Program?

9/11/08 (c) 2008 Matthew J. Rutherford Class (c) 2008 Matthew J. Rutherford Class

(0) introduction to the course. how to learn a programming language. (0) course structure

CHAPTER 1: INTRODUCTION TO COMPUTERS AND PROGRAMMING. 1 Muhalim Mohamed Amin Faculty of

CHOICE BASED CREDIT SYSTEM (With effect from )

Course specification

Elements of Computers and Programming Dr. William C. Bulko. What is a Computer?

Problem Solving and Program Design - Chapter 1. Cory L. Strope

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

Chapter 1: Introduction to Computers and Programming

Linked Lists in C and C++

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

Introduction to C++ Introduction to C++ 1

CHAPTER 1 Introduction to Computers and Java

JAVA MOCK TEST JAVA MOCK TEST II

ESc101 : Fundamental of Computing

SCSP Programming Technique C

Spring 2018 NENG 202 Introduction to Computer Programming

II. Programming Technologies

CS 1713 Introduction to Computer Programming II Ch 0 Overview - Problem solving

Transcription:

Introduction Instructor: Jia Xu CSCI-135

about 135 prerequisite: CSCI-127 final score: 25% programming projects (3-5) late penalty on programming projects (see b.b.) 75% three tests (equally weighted)

Instructors Jia Xu Office hours: Tues. 14:00-16:00 HN-1043 jx146@hunter.cuny.edu Saptarshi Debroy Office hours: Thurs. 15:00-17:00 HN-1047 sd1998@hunter.cuny.edu

references text book: Absolute C++, Walter Savitch, 6th Edition references: The C++ Programming Language, Bjarne Stroustrup, 4th Edition C++ Kurzgefasst, Rainer Krienke, 2nd Edition Introduction to C++, Adil Aslam, in Slideshare.net Buckys C++ Programming Tutorials http://www.inf.ufrgs.br/~ssalamon/books

related courses C++ lab: CSCI-136 Linux: introduction to Linux classes (Wed 9/7 Tue 9/14) Thomas Walter http://www.geography.hunter.cuny.edu/tbw/ CS.Linux.Lab.FAQ/ department_of_computer_science.faq.htm

Computer: hardware & software

computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker

computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker

computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker

computer hardware keyboard CPU screen mouse printer harddisk input (I) memory output (O) speaker

computer hardware keyboard screen CPU mouse printer harddisk input (I) memory output (O) speaker A Computer = a device that can be instructed to carry out an arbitrary set of arithmetic (+,-) or logical operations (AND, OR) automatically.

hardware & software

hardware & software

hardware & software hardware CPU, memory, IO

hardware & software system software operating system hardware CPU, memory, IO utilities

hardware & software application software office internet browser game system software operating system hardware CPU, memory, IO utilities

hardware & software application software software is that office part of internet a computer browser system that game consists of encoded information or computer instructions, system software includes computer programs, libraries and data operating system hardware CPU, memory, IO utilities

software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data

software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer

software is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer

135 course is about software How to write programs!!! is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer

135 course is about software How to write programs!!! is that part of a computer system that consists of encoded information or computer instructions, includes computer programs, libraries and data collection of instructions that performs a specific task when executed by a computer

computer programs in programming languages

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming language a computer program is written in programming language PC programs programming language

programming languages http://www.techtechnik.com/10-excellent-programming-languages-in-demand-2015/

programming languages high level language imperative language object oriented language functional language scripting language assembly language machine language Fortrain, C, Pascal, hardware

Machine language a set of instructions executed directly by a CPU written in the form of 0 and 1 a computer can directly understand its own language 1000100001111 0000111000000

Machine language a set of instructions executed directly by a CPU written in the form of 0 and 1 a computer can directly understand its own language 1000100001111 0000111000000

assembly language low level language = use naturally understandable symbols called Mnemonics

procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC,

procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC, OOP = programming paradigm based on the concept of objects, which are data structures containing the data as fields (attributes) and code as procedures (methods) C++, Java, C#

procedural function definition and usage in the program top down no access specifier object oriented method and variables defined in class and used in objects bottom up access specifier: public, private, protected etc. procedural language = a list or set of instructions telling a computer what to do step by step C, Pascal, Fortran, BASIC, OOP = programming paradigm based on the concept of objects, which are data structures containing the data as fields (attributes) and code as procedures (methods) C++, Java, C#

C Ritchie C++ Stroustrup procedural yes OOP virtual function, polymorphism, overloading, namespace, inheritance no yes top down yes no multiple declaration of global variables yes no mapping between data and function used in objects no yes can call main() through other functions yes no all variables defined at the starting of a scope yes no

C++ compilers Windows: Visual Studio Bloodshed Dev-C Linux/Unix: GNU gcc e.g. g++ -o test test.cc