CS 1111 Introduction to Programming Spring 2019

Slides:



Advertisements
Similar presentations
 Do you know what will you learn?  Do you know the marking scheme for computer skills?  What you need to prepare for computer skills?
Advertisements

Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
Skills: none Concepts: data and program files, IP packet, packet header, packet body, IP address, host name This work is licensed under a Creative Commons.
Skills: include images in Web pages Concepts: tag, attribute, value, path (to a stored file) This work is licensed under a Creative Commons Attribution-Noncommercial-Share.
Skills: create a Twitter account, subscribe to (follow) the class Twitter feed, post tweets Concepts: subscription This work is licensed under a Creative.
IT skills: IT concepts: Web client (browser), Web server, network connection, URL, mobile client, peer-to- peer application This work is licensed under.
Enlarging The Stream Image 1.Log onto the codian to view the stream. 2. Get to the class you are looking for. 3. Press the “Watch” for that class.
1 MID TERM EXAM DIRECTIONS George Koutsogiannakis Spring 2011 CS441 CURRENT TOPICS IN PROGRAMMING LANGUAGES.
CIS101 Introduction to Computing Week 05 Spring 2004.
Title of Presentation Name Date 2011 Presentation Template.
Temple University Training Acoustic Models Using SphinxTrain Jaykrishna Shukla, Mubin Amehed, and Cara Santin Department of Electrical and Computer Engineering.
Authors: Haowei Yuan and Patrick Crowley Publisher: 2013 Proceedings IEEE INFOCOM Presenter: Chia-Yi Chu Date: 2013/08/14 1.
Java Programming: Advanced Topics 1 Networking Programming Chapter 11.
11 MANAGING INTERNET EXPLORER CONNECTIONS AND SECURITY Chapter 12.
Artificial Intelligence and Robotics Spring 2014.
CS 162 Introduction to Computer Science II Winter, 2014: 60 Spring, 2014: 60 Summer, 2014: 71.
1 10/15/04CS150 Introduction to Computer Science 1 Reading from and Writing to Files Part 2.
Heinemann Biology Activity Manual Activity 3.1 Urey and Miller’s experiment Read about Urey and Miller’s experiment and theories on the chemical formation.
CMSC 601 Basic Research Skills Spring 2011 Tim Finin
Exam 1. Spring Comparison Spring 2007 A’s 12 8% B’s 25 17% C’s 46 32% Passing 83 57% D’s 34 23% Median 71% Spring 2008 A’s 25 14% B’s 45 27% C’s 38 22%
PRESENTATION TITLE PRESENTER NAME Presenter title, organization © 2015 Internet2 Subtitle (if any)
Glencoe Introduction to Multimedia Chapter 2 Multimedia Online 1 Internet A huge network that connects computers all over the world. Show Definition.
Content Syndication: RSS, Podcasting, iTunes, YouTube.
Standard 2: Fall 10, Spr 11, Spr Problems. #14 Fall 2010 Practice Proficiency Exam.
Standard 1: Fall 10, Spr 11, Spr Problems. #34 Fall 2010 Practice Proficiency Exam.
File Processing Upsorn Praphamontripong CS 1110
Final Exam Review Chapters 3 & 4.
Exam 3 Information George Koutsogiannakis
Level 3 Revision & Portfolio
File Writing Upsorn Praphamontripong CS 1110
Pertemuan 19 Introduction to TCP/IP
Virtual Classrooms.
Introduction to Computers
Arab Open University (AOU)
CS 241 Section (11/18/2010).
Source URL:
Website URL
FINAL EXAM INFORMATION
JAVA IO.
Quiz 2 Information George Koutsogiannakis
eBook Explained Allows you to search for terms and definitions
File IO and Strings CIS 40 – Introduction to Programming in Python
Peripheral Devices
protocol relative URLs
Fire Hose, Nozzles, Streams, and Foam
Pima Medical Institute Online Education
Hyperlinks and Protocols
CS 1111 Introduction to Programming Fall 2018
COMP 101 Introduction.
COMPUTER NETWORKS CS610 Lecture-35 Hammad Khalid Khan.
CS150 Introduction to Computer Science 1
CS 140 Lecture Notes: Introduction
Introduction to Digital Libraries Assignment #2
Pima Medical Institute Online Education
Relentless Distribution
CS 1111 Introduction to Programming Spring 2019
Topics Introduction to File Input and Output
Title: Group Member Names:.

MY SCHOOL PROGRAM NAME TEACHER DATE NAME, TEACHER AND DATE.
Review of Previous Lesson
CS 140 Lecture Notes: Introduction
Introduction to Computer Science
Time To Reflect Author: Anne Inglis.
Title of Presentation (your names).
Nate Brunelle Today: Web Reading
Computer Security Damian Gordon.
CS 1111 Introduction to Programming Spring 2019
Putting it all together
The Department of Environment and Geography
Presentation transcript:

CS 1111 Introduction to Programming Spring 2019 Reading from Internet CS 1111 Introduction to Programming Spring 2019

File Processing (Local) Repeated process Open a file Read contents of a file Process the content Write/append content to another file Close a file

File Processing (Internet) Repeated process Open a file Read contents of a file Decode the content Process the content

Opening Files (Internet, via URLs) import urllib.request url = some-url-to-the-file stream = urllib.request.urlopen( url) for line in stream: decoded = line.decode("UTF-8") print(decoded.strip())

Summary Read from files -- Must know (based on exam2 topic list, as of 03/27/2019) open(filename) connection.read() connection.readline() ways of iterating lines connection.readlines() connection.read().split('\n') for line in connection Read from the Internet -- Must know (based on exam3 topic list, as of 03/27/2019) import urllib.request urllib.request.urlopen(url) stream.read().decode('utf-8')