Introducton To Programming - Parkland    

Last Modified:
Thursday, 08-Feb-2018 10:23:46 CST

CIS122: 13 Week Outline Spring 18




Week 1 - Feb. 5
Week 2 - Feb. 12
Week 3 - Feb. 19
Thurs. Parkland Closed
Week 4 - Feb 26
Week 5 - Mar. 5
Week 6 - Mar. 12
Mar 17-25 Spring Break

Week 7 - Mar. 26 Week 8 - Apr. 2
Week 9 - Apr. 9
Week 10 - Apr. 16
Week 11 - Apr. 23 Week 12 - Apr. 30
Week 13 - May 7

Week 1: Feb. 5


Links, Reading, Class Overview:

Introduction to Class, Grading Policies, Basic Programming and Encoding

The Book


This is the book and you will need to get it as soon as possible as we use it a lot and it is the basis of this class. Note that some students have bought the .pdf file online. Also note that we do not get the "my programming lab", just the book.


Introduction to Computing and Programming in PYTHON, A multimedia Approach. Fourth Edition. Mark J. Guzdial and Barbara Ericson.





Chapter 2 Notes:

Software You Will Need on Your Personal Machine
Video:

Labs and Assignments:

Week 2: Feb. 12


Links, Reading, Class Overview:



Chapter Two Notes:
Video:

Labs:

Week 3: Feb. 19
Thurs. Parkland Closed


Links, Reading, Class Overview:

Quiz 1 - Ch 2 Second Day of NEXT week

FInish Ch 2 Continue on to Ch 3
Video:

Labs:

Week 4: Feb 26


Links, Reading, Class Overview:



Control Structures: Section 3.2-Taking Strings Apart With "for" loops
Video:

Labs:

Week 5: Mar. 5


Links, Reading, Class Overview:

  • Take the quiz on Chapter 3 First day of Next week
  • Begin Chapter 4
  • Be sure to watch the videos at home on how to use range() and the other videos

Video:

Labs:

Week 6: Mar. 12
Mar 17-25 Spring Break


Links, Reading, Class Overview:

Chapter 4
  • Ch 4 pp.74-81: How images are encoded and understanging the color scheme of .jpg files.
  • Ch 4 pp.81-89: Methods used for manipulating images.
    • makePicture(file) Format/create an image object out of a file name
    • image_object=makePicture(pickAFile()) pick and create an image object/variable in one operation
    • getWidth(image_object) and getHeight(image_object) p.81 AFTER makePicture(file_path)
    • getPixel(image_object,x,y) p. 81 get one pixel
    • getPixels(image_object) Create an array of an image
    • print getX(pixel)
    • print getY(pixel)
    • getRed(pixel) setRed(pixel,0-255) p. 82
    • getColor setColor makeColor
    • repaint(image_object)
    • pickAColor() pallet to pick a color
    • writePictureTo(image_object,"F:/file.jpg") could use the r in front of the "F
Continue on Ch 4

Video:

Labs:

Week 7: Mar. 26


Links, Reading, Class Overview:

  • Finish Ch 4
  • Begin Ch 5. pp. 114-117
  • Operators and Representation Functions A.4 p. 484
  • Exam 1: Will be in Week 9. Ch 2,3,4,5
    You will be writing a program in class

Begin Ch 5. pp. 114-117
  • Quiz on Ch 4 second day next week multiple guess
  • Logical operators p. 115 and A.4 p. 484
    < , <= , == , > , >= , <> , !=
  • distance function p. 115

Files:

Video:

Labs:

Week 8: Apr. 2


Links, Reading, Class Overview:

  • Quiz on Ch 4 second day this week multiple guess
  • Ch 5 continued
  • Replacing a color in a range()
  • Use explore() to select values for your range.
  • Rememgber range() p. 58
  • Nesting if statements
  • Project 1 Assigned.
  • Lab 9 Assigned

Video:

Labs:

Week 9: Apr. 9


Links, Reading, Class Overview:

Day 1
  • Exam Ch 2-5 - Will be on Tuesday NEXT week. You will be writing a program that corrects the color of an image that will be given to you. You need to know how to take command line arguments, and how to write a file.
  • Finish Chapter 5
  • setMediaPath() at the end of Ch 5
Day 2
  • Assign Lab 10
  • Begin Chapter 6 pp. 145-154
  • Double Nested Loops program63.py page 148
  • demonstration of my current project

Video:

Labs:

Week 10: Apr. 16


Links, Reading, Class Overview:

Day 1: Exam - in class Ch 2-5

Day 2:
  • Continue Chapter 6
  • Copying multiple images to a larger blank canvas




Video:

Labs:

Week 11: Apr. 23


Links, Reading, Class Overview:

Chapter 11 pp. 311-323 - Reading and writing to files

NOTE ERROR in book:
There is an error in the book in the while loop in Program 138. p.323 The correct way to go through a file is:
while fileobject <> "":
Note the double set of double tics is needed which indicate:
"while "blankline" The "" with nothing between them indicate the null string.

String Methods: p. 313-314
  • .startswith(string) Note the Methods do not have the same capitalization as the functions.
  • .endswith(string)
  • .find(string) Reports an index number
  • Other string methods: .title() .upper() .lower() .swapcase() .isalpha() .isdigit()
  • .replace(search_string,replace_string)

List Methods: p. 315 These are methods that are only for a list not just a string by itself.
  • .append(string_to_append_to_a_list)
  • .remove(string_item_in_list)
  • .sort()
  • .reverse()
  • .count()
  • .max() .min()


requestString("Please enter the word etc.")
See the index on p. 496 for requestString() and also raw_input() which are 2 ways to interactively getting user input in string form.

We do not cover 11.3.3-5 processing information from the web

Video:

Labs:
Lab 12 Assigned - Practice programs for Ch 11: Reading and writing text and lists to files.
Lab 13 Assigned - Read and Write Files Reading and writing text and lists to files.

Week 12: Apr. 30


Links, Reading, Class Overview:

  • Finish Ch 11 - from Thursday's Lab Failure
  • Start on Ch 17
  • Begin Chapter 17 - Object Oriented programming with turtles
  • Chapter 17: Object Oriented Programming
    • Ch 17 pp. 447-454
    • Using Robotic Turtles to explore Object Oriented Programming
    • Back Inside cover of book. Methods for Communicating with Turtles.
    Chapter 17: SubClasses in Object Oriented Programming
    • Ch 17 pp. 454-459
    • Creating Subclasses (objects with special functionality)

Video:

Labs:

Week 13: May 7


Links, Reading, Class Overview:


- Chapter 17: Object Oriented Programming Continued
  • Ch 17 pp. 459-464
  • Practice Programs Ch 17 Through Program 206
  • See p. 82 for writePictureTo
  • Using Robotic Turtles to drop objects
Review Concepts for Final Exam Fall 17
Be prepared to:
  • Handle one or more command line arguments to your main function that are file paths/names..
  • Know how to make an empty picture based upon the size of an image. For instance make a picture that is 3 times the size of a known image in both X and Y dimensions so that you could write 9 images into the resulting image
  • Know how to make a turtle do a random drawing and draw patterns of your own choice.
  • Know how to write an image into a picture to the exact place that you want.
  • Know how to write an image into a picture transparently (blending).
  • Know how to write an image into a picture while mirroring it.
  • Know how to make a turtle drop images into a picture.
  • Know how to make a color corrector of the various types from Ch6.
  • Know how to write an image out to disk.

Sean's Finals Schedule

| Top |