Introducton To Programming - Parkland    

Last Modified:
Wednesday, 14-Nov-2018 12:27:46 CST

CIS122: Outline Fall 18




Week 1 - Aug. 20
Week 2 - Aug. 27
Week 3 - Sept. 4
Sept. 3 -Labor Day
Week 4 - Sept. 10
Week 5 - Sept. 17
Week 6 - Sept. 24
Week 7 - Oct. 1 Week 8 - Oct. 8
Week 9 - Oct. 15
Week 10 - Oct. 22
Week 11 - Oct. 29 Week 12 - Nov. 5
Week 13 - Nov. 12
Week 14 - Nov. 19
Thanksgiving Break
Begins Wed. 5pm

Week 15 - Nov. 26 Week 16 - Dec. 3

Week 1: Aug. 20


Links, Reading, Class Overview:

Introduction to Class, Grading Policies, Basic Programming and Encoding Chapter 2 Notes:

Software You Will Need on Your Personal Machine
Videos:

Labs and Assignments:

Week 2: Aug. 27


Links, Reading, Class Overview:



Chapter Two Notes:
Videos:

Labs:

Week 3: Sept. 4
Sept. 3 -Labor Day


Links, Reading, Class Overview:

Quiz 1 - Ch 2 Day 1 Next Week Quiz on Chapter 2 - multiple guess.
Video:

Labs:

Week 4: Sept. 10


Links, Reading, Class Overview:

Early In Week
  • Quiz 1 Ch 2
  • Continue On in Chapter 3 pp. 49-55
  • Looking at Logic in if-elif-else statements.
Second Part of Week
  • There will be Quiz on Ch3 at the end of Next Week.
  • Continue On in Chapter 3 pp. 54-59
  • range function p. 58
  • Read and do the programs in Chapter 3 pp. 58 to the end.
  • We will be starting Ch. 4 Next week.
  • Note TYPO in Program 22:Mirror a string p. 56 The line with pile in it should read:
    pile=letter+pile+letter
range() function p. 58: Used to generate numbers to use in for loops when using the index[] style access of elements in a list. range() can take 1 or 2 or 3 arguments. Test these at the command line for yourself.
  1. Argument: range(len(strVar)) - start at 0 and give the number of elements in the string.
  2. Argument: range(2,5) - start at the third element and go to what would have been the fifth element if you had started at the first [0] element
  3. Argument: range(startIndex,endPoint NON-inclusive,increment)

Video:

Labs:

Week 5: Sept. 17


Links, Reading, Class Overview:

  • See Append A.4 p. 484-5 OPERATORS AND REPRESENTATION FUNCTIONS
  • Section 3.3: Taking strings apart by words "Structured text lists"
  • This Week day 2 there will be a quiz on Chapter 3 you will be writing a small program.
  • Global Variables
  • Begin Ch 4

Video:

Labs:

Week 6: Sept. 24


Links, Reading, Class Overview:


Chapter 4:
  • Ch 4 pp.74-81: How images are encoded and the color scheme common in viewing and manipulating .jpg files.
  • Ch 4 pp.81-89: Methods used to query and manipulate 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 then run through a for loop.
    • print getX(pixel)
    • print getY(pixel)
    • getRed(pixel) setRed(pixel,0-255) p. 82
    • getColor setColor makeColor
    • 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: Oct. 1


Links, Reading, Class Overview:

  • Finish Ch 4
  • Midterm next week Second Day of Class mostly Ch 4

Files:

Video:

Labs:

Week 8: Oct. 8


Links, Reading, Class Overview:

Midterm is the SECOND day of class this week. You will be writing a color correction program to specifications.
Prep For Midterm Lab.
  • Begin Ch 5. pp. 114-117
  • Operators and Representation Functions A.4 p. 484
  • You will be writing and submitting a program in a timed test.
  • Ch 5
  • Appendix A.4 - Operators and Representation Functions.
  • Color Distance calculation p. 115
  • getX() getY() distance()


Video:

Labs:

Week 9: Oct. 15


Links, Reading, Class Overview:

Beginning of Week
  • Begin Ch 5. pp. 114-117
  • Operators and Representation Functions A.4 p. 484
  • You will be writing and submitting a program in a timed test.
  • Ch 5
  • Appendix A.4 - Operators and Representation Functions.
  • Color Distance calculation p. 115
  • getX() getY() distance()

Video:

Labs:

Week 10: Oct. 22


Links, Reading, Class Overview:


Video:

Labs:

Week 11: Oct. 29


Links, Reading, Class Overview:


Video:

Labs:

Week 12: Nov. 5


Links, Reading, Class Overview:

  • 6.3 Copying and transforming images into blank canvas:
    Page 158-165
  • Programs 70-73
  • see p. 483 looping set number of times
  • makeEmptyPicture() accepts 2 or 3 arguments
  • Prog82 and 83, scaling an image
  • setMediaPath() used to select a directory,
    especially useful when dealing with multiple files that you miust name.
  • Chapter 8.6 p. 250 - The scope of a variable
  • Using Double Nested for loops and range() to stretch or shrink an image
  • Handling multiple files using setMediaPath() p. 141, 156, 275
  • Writing multiple files into a single canvas
  • 9 images of the same size

Video:

Labs:
  • Creating Thumbnails and setting a media path

  • Week 13: Nov. 12


    Links, Reading, Class Overview:



    Chapter 11 - Manipulating text, String methods and structured lists.
    • Chapter 11
      Second part of week: String Methods pp. 311-317 reading and writing to files pp. 317-321
    • Programming Summary p. 333

    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.

    Day 2 - 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.

    Video:
    Object Oriented Turtle drawing Videos
    Labs:

    Week 14: Nov. 19
    Thanksgiving Break
    Begins Wed. 5pm


    Links, Reading, Class Overview:


    First part of week: Continuing on with Object oriented Turtles. Open lab for day 2

    Video:

    Labs:

    Week 15: Nov. 26


    Links, Reading, Class Overview:

    Day 1 - Chapter 17: SubClasses in Object Oriented Programming
    • Ch 17 pp. 454-459
    • Creating Subclasses (objects with special functionality)
    • Create Project X in Class
    • Ch 17 pp. 459-464
    • Practice Programs Ch 17 Through Program 206
    • See p. 82 for writePictureTo
    • Using Robotic Turtles to drop objects
    • Using robotic turtles to draw randomly

    Video:

    Labs:

    Week 16: Dec. 3


    Links, Reading, Class Overview:

    Day 1 - Chapter 17: Object Oriented Programming
    • Ch 17 pp. 459-464
    • Practice Programs Ch 17 Through Program 206
    • See p. 82 for writePictureTo
    • Using Robotic Turtles to drop objects
    Day 2 - Prepare for Final / OPEN Lab
    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.

    Video:

    Labs:

    Final: Finals Week
    Dec. 10-14





    Sean's Finals Schedule

    | Top |