Introduction to Computer Programming Class 1 CSCI-UA 2 - - PowerPoint PPT Presentation

introduction to computer programming class 1 csci ua 2
SMART_READER_LITE
LIVE PREVIEW

Introduction to Computer Programming Class 1 CSCI-UA 2 - - PowerPoint PPT Presentation

Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Computers and networks finally offer On Code Literacy us the ability


slide-1
SLIDE 1 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

slide-2
SLIDE 2 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview “Computers and networks finally offer

On Code Literacy

us the ability to write. And we do write with them on our websites, blogs, and social networks. But the underlying capability of the computer era is actually programming—which almost none of us knows how to do. We simply use the programs that have been made for us, and enter our text in the appropriate box on the screen.” —Douglas Rushkoff
slide-3
SLIDE 3 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

Algorithm

slide-4
SLIDE 4 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview A set of rules

Algorithm

An operation A procedure A process A recipe Precise step-by-step instructions
slide-5
SLIDE 5 Introduction to Computer Programming CSCI-UA 2 Class 1 Introduction and Overview
slide-6
SLIDE 6 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Hardware

Computing in Context

Operating system Software Computer Code
slide-7
SLIDE 7 Jacquard Loom, 1801
slide-8
SLIDE 8 Ada Lovelace (1815–1852)
slide-9
SLIDE 9 '~ ........
  • '
  • 1
1 . . . . . ·-... '
  • ·
·
  • I
I , . . . . . . . . . . . " .. . .. . . . ' .. . . . . . ... . . . . . . . . . ... . . . . . . . . .

'

ENIAC, 1942
slide-10
SLIDE 10 Introduction to Computer Programming CSCI-UA 2 Class 1 Introduction and Overview
slide-11
SLIDE 11 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview
slide-12
SLIDE 12 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

What is a program?

slide-13
SLIDE 13 
 
 
 
 
 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview A sequence of instructions for a

What is a program?

computer to follow May be mathematical or symbolic Basics include:
  • input
  • output
  • math
  • conditional execution
  • repetition
slide-14
SLIDE 14 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Low-level programming languages are

Programming Languages

closer to “machine language”

Low-Level

They are difficult (though not impossible) for humans to read and, as such, are more error-prone
slide-15
SLIDE 15 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview 8B542408 83FA0077 06B80000 0000C383 FA027706 B8010000 00C353BB 01000000 B9010000 008D0419 83FA0376 078BD98B C84AEBF1 5BC3
slide-16
SLIDE 16 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview High-level programming languages are

Programming Languages

closer to real syntax

High-Level

High-level languages are abstracted and therefore require interpretation We’ll be working with a high-level language
slide-17
SLIDE 17 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

print('Hello, world!')

slide-18
SLIDE 18 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Syntax

Natural Languages and

Grammar

High-Level Programming

Parts of speech

Languages

Semantics

Similarities

slide-19
SLIDE 19 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Natural language syntax is the

Syntax

arrangement of words and phrases to create well-formed sentences. Programming language syntax is the arrangement of words and characters to correctly structure programs.
slide-20
SLIDE 20 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

Grammar

Natural language grammar refers to the whole system and structure of a language, such as sentences and paragraphs. Programming languages also implement structure, such as blocks of code and statements within the blocks.
slide-21
SLIDE 21 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Natural languages incorporate different

Parts of Speech

parts of speech, like nouns, verbs, and adjectives. Programming languages also have parts of speech called “data types” that include different kinds numbers and characters.
slide-22
SLIDE 22 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview In natural languages, semantics refers

Semantics

to the meaning of a word. “Cat” brings something specific to mind. In programming languages, certain symbols, like + and =, have specific meaning as well as some key words.
slide-23
SLIDE 23
slide-24
SLIDE 24 Introduction to Computer Programming CSCI-UA 2

Key Words A primary difference between natural and programming languages

Class 1 Introduction and Overview Python keywords: False, None, True, and, as, assert, break, class, continue, def, del, elif, else, except, finally, for, from, global, if, import, in, is, lambda, nonlocal, not, or, pass, raise, return, try, while, with, yield
slide-25
SLIDE 25 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Determining the logic of a program

Pseudocode

without regard for the language it will be written in Best written out on paper or in a plain text editor Pseudocode describes the steps of an algorithmic process
slide-26
SLIDE 26 Introduction to Computer Programming CSCI-UA 2 From Natural Language to Machine Language by Way of Python
slide-27
SLIDE 27
  • n
Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview
slide-28
SLIDE 28 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

=

slide-29
SLIDE 29 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

type()

slide-30
SLIDE 30 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview a b a == b a != b a and b a or b not a False False True False False False True False True False True False True True True False False True False True False True True True False True True False
slide-31
SLIDE 31 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

slide-32
SLIDE 32 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

slide-33
SLIDE 33 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

s[i]

slide-34
SLIDE 34 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

[]

slide-35
SLIDE 35 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

slide-36
SLIDE 36 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

{}

slide-37
SLIDE 37 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

slide-38
SLIDE 38


 
 
 
 
 
 
 
 
 Introduction to Computer Programming CSCI-UA 2

Course Content Introduction to Computer Programming

Class 1 Introduction and Overview
  • Python Basics
  • Data Types and Variables
  • Control Structures
  • Repetition Structures
  • Functions and Modules
  • Strings
  • Lists
  • File Input and Output
  • Dictionaries
  • Object-oriented programming
slide-39
SLIDE 39 
 
 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Joshua Clayton

Introductions

jclayton@cs.nyu.edu

Me

Room 420, Warren Weaver Hall Office hours
  • Monday, 2:30–4:00 p.m.
  • Wednesday, 10:30 a.m.–12:00 p.m.
cs.nyu.edu/cs/faculty/clayton
slide-40
SLIDE 40 Introduction to Computer Programming CSCI-UA 2

Syllabus Prerequisites

Class 1 Introduction and Overview No prior experience assumed 3 years of high school math required For students considering a Computer Science major For students considering or pursuing a Computer Science minor For students interested in programming C or better is required to take further CS classes as a major
slide-41
SLIDE 41 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

Syllabus Class Format

The course consists of three primary components
  • Online learning modules
  • In-class discussion and application of
principles
  • In-class workshops
slide-42
SLIDE 42 Introduction to Computer Programming CSCI-UA 2

Syllabus Quizzes

Class 1 Introduction and Overview There will be ten online quizzes that go along with each online learning module Questions are multiple-choice Quizzes are delivered via NYU Classes and can be attempted up to five times Your most recent score will be the one recorded Quizzes must be completed before class on the day in which they are due Quizzes are worth 5% of your grade
slide-43
SLIDE 43 Overview

·-

·-

[t[] Syllabus t:l Announcements

m

Calendar II Assignments ~ Tests & Quizzes RI Gradebook 4 • File Exchange ti# Forums [b] NYU Libraries Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

Syllabus Quizzes

slide-44
SLIDE 44 Introduction to Computer Programming CSCI-UA 2

Syllabus Assignments

Class 1 Introduction and Overview There will be ten assignments over the course of the semester. Details of each assignment will be posted on the class website. All assignments are to be submitted via NYU Classes. Do your best to turn work in on time. 10% will be deducted for each class period after the deadline. No assignments will be accepted after three classes or after the final exam.
slide-45
SLIDE 45 Introduction to Computer Programming CSCI-UA 2

Syllabus Attendance

Class 1 Introduction and Overview You are expected to come to all classes and arrive on time. Please let me know in advance if you will be out for any reason. Please let me know if you miss class due to illness. You are encouraged to bring a computer to class If you ever feel overwhelmed or need extra help, I will be available to you.
slide-46
SLIDE 46 
 
 
 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Starting Out with Python

Syllabus

4th Edition

Textbook

Tony Gaddis ISBN: 978-0-134-44432-1
slide-47
SLIDE 47 
 
 
 
 
 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Assignments

Syllabus

20%

Grading Rubric

Quizzes 5% Midterm Exam 1 20% Midterm Exam 2 20% Final exam 35%
slide-48
SLIDE 48 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview
  • Review class website

For Next Class

  • Complete learning module 1
  • Take quiz
slide-49
SLIDE 49 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview