introduction to computer programming class 1 csci ua 2
play

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


  1. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview ⌘

  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

  3. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Algorithm

  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

  5. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

  6. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Hardware Computing in Context Operating system Software Computer Code

  7. Jacquard Loom, 1801

  8. Ada Lovelace (1815–1852)

  9. '~ ........ ·- ... • • ' • • 1 1 . . . . . ' . . .. . . ' .. • · · • • . I I . , . . . . . . . . " . . ... . .. . . . . . . . . . . ... . . . . . . . . . . . ' ENIAC, 1942

  10. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

  11. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview

  12. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview What is a program?

  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

  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

  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

  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

  17. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview print('Hello, world!')

  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

  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.

  20. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Natural language grammar refers to Grammar 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.

  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.

  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.

  23. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Python keywords: Key Words False, None, True, and, as, assert, A primary difference break, class, continue, def, del, elif, between natural and else, except, finally, for, from, global, if, import, in, is, lambda, nonlocal, not, or, programming languages pass, raise, return, try, while, with, yield

  24. 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

  25. Introduction to Computer Programming From Natural Language to Machine Language CSCI-UA 2 by Way of Python

  26. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview o n

  27. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview =

  28. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview type()

  29. 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

  30. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview ↺

  31. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview ▧

  32. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview s[i]

  33. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview []

  34. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview ⇆

  35. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview {}

  36. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview ✎

  37. 
 
 
 
 
 
 
 
 
 
 Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview • Python Basics Course Content • Data Types and Variables Introduction to • Control Structures • Repetition Structures Computer Programming • Functions and Modules • Strings • Lists • File Input and Output • Dictionaries • Object-oriented programming

  38. 
 
 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

  39. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview No prior experience assumed Syllabus 3 years of high school math required Prerequisites 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

  40. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview The course consists of three primary Syllabus components Class Format • Online learning modules • In-class discussion and application of principles • In-class workshops

  41. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview There will be ten online quizzes that go Syllabus along with each online learning module Quizzes 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

  42. ~ Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview Syllabus ·- ·- Overview Quizzes [t[] Syllabus t:l Announcements m Calendar II Assignments Tests & Quizzes RI Gradebook File Exchange 4 • ti# Forums [b] NYU Libraries

  43. Introduction to Computer Programming Class 1 CSCI-UA 2 Introduction and Overview There will be ten assignments over the Syllabus course of the semester. Assignments 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.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend