Introducton To Programming - Parkland    

Last Modified:
Tuesday, 22-May-2018 13:19:17 CDT

CIS122: 12 Week Outline Summer 18




Week 1 - May 21
Week 2 - May 28
Week 3 - June 4 Week 4 - June 11
Week 5 - June 18
Week 6 - June 25
Week 7 - July 2 Week 8 - July 9
Week 9 - July 16
Week 10 - July 23
Week 11 - July 30 Week 12 - Aug. 6

Week 1: May 21


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: May 28


Links, Reading, Class Overview:



Chapter Two Notes:
Video:

Labs:

Week 3: June 4


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: June 11


Links, Reading, Class Overview:

Note that NEXT week on the second day of class there is a quiz on Ch 3.

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

Labs:

Week 5: June 18


Links, Reading, Class Overview:

  • Take the quiz on Chapter 3 First day of Next week
  • Begin Chapter 4
  • Ch 4 pp.74-81: How images are encoded and understanding the color scheme of .jpg files.
  • Be sure to watch the videos at home on how to use range() and the other videos on .split() and other methods.

Video:

Labs:

Week 6: June 25


Links, Reading, Class Overview:

Chapter 3 Quiz

Next WEEK DAY 1: Midterm Exam Covering Chapter 4:



Chapter 4
  • 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: July 2


Links, Reading, Class Overview:

DAY 1: Midterm Exam Covering Chapter 4:
You will be writing a program in class
  • Begin Ch 5. pp. 114-117
  • Operators and Representation Functions A.4 p. 484

Begin Ch 5. pp. 114-117
  • Logical operators p. 115 and A.4 p. 484
    < , <= , == , > , >= , <> , !=
  • distance function p. 115

Files:

Video:

Labs:

Week 8: July 9


Links, Reading, Class Overview:

Day 1:
  • Ch 5 continued
  • Using "luminance" like in Program 53 p. 125 , using this calculation easily allows us to change the entire color gamut of an image.
  • Note that "luminance" is related to but is a separate calculation (different algorythm) than the color distance function.
  • Note the process of "Luminance" which the book calls "posterize" as in programs 52 and 53.
Day 2:
  • Replacing a color in a range()
  • Use explore() to select values for your range.
  • Remember range() p. 58
  • Nesting if statements
  • Edge Detection

Video:

Labs:

Week 9: July 16


Links, Reading, Class Overview:

Day 1
  • Review Midterm and write in class for a 10 point lab.
Day 2
  • Finish Chapter 5
  • setMediaPath() at the end of Ch 5
  • Begin Chapter 6 pp. 145-154
  • Double Nested Loops program63.py page 148
  • demonstration of my current project

Video:

Labs:

Week 10: July 23


Links, Reading, Class Overview:

Day 1:
  • Continue Chapter 6
  • Mirroring vertically and horizontally using double nested for loops
  • Copying multiple images to a larger blank canvas

Day 2:
  • Continue Chapter 6
  • makeEmptyPicture() and it's arguments
  • Testing the efficiency of a program Prog 65 p. 150
  • Writing multiple images into a blank canvas
  • Taking a range out of an image and writing it into another image




Video:

Labs:

Week 11: July 30


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()

11.3.1 Opening and Manipulating Files Page 319.
  • open([fileName],[how_to_open]) We use 2 "how to open" arguments "rt" or "wt"
  • file.read()
  • file.write("string goes here")
  • file.close()MUST ALWAYS close the file.
  • See p. 320 for your first test file writes.

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
Finish Ch 11

Video:
Strings Turtle Methods

Labs:

Week 12: Aug. 6


Links, Reading, Class Overview:

    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:

| Top |