CS 145 Lecture 23 – Optimization and Accumulation
Agenda what ?s loop patterns: optimization accumulation TODO Read chapter 5 in your book. You’ve already read section 5.3. Write down 2-3 questions or observations on a 1/4 sheet for Friday. Note Today we continue our discussion of loop patterns. Last time we look at the pervasive loop and a half. Now we look at the […]
CS 145 Lecture 22 – Loop-and-a-half
Agenda what ?s what does this do? looping patterns: loop and a half accumulation selection TODO Let’s not have lab tomorrow. This was anticipated! Quiz 4 is and has been scheduled for next week. For Wednesday, complete some loop questions on CodingBat, sections String-2 or String-3, or Practice-It!, section BJP3 Chapter 5. Note Loops add a […]
CS 145 Lecture 21 – Working with Images
I’m at conference in Atlanta this week, so we will not have our regular lecture on Wednesday and Friday. However, to help you complete homework 4 and see for loops in action, I’ve recorded a few videos that manipulate images in various ways. Flipping Swapping Colors Gradient Splitting
CS 145 Lecture 20 – For Loops
Agenda what ?s the anatomy of while the disfigured for TODO Lab is on for tomorrow, but there’s no lecture Wednesday or Friday. Watch lecture 21. No 1/4 sheet. Start homework 4, which is due before November 2. Sync on Bitbucket and pull to get the latest SpecChecker. Mercy Bounty If you did not get […]
CS 145 Homework 4 – due before November 2
See the PDF.
CS 145 Lab 4 – Conditionals and Loops
First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Please work with someone that you did not work with last lab. Objective In this lab, we use logical […]
CS 145 Lecture 19 – While
Agenda what ?s don’t repeat yourself while TODO Finish homework 3. Verify that your code lands on Bitbucket. Recall that resolving Bitbucket issues is part of completing a homework. I grade Monday morning. Note Pilots don’t just swerve around mountains, falling meteors, and enemy fire. They also do tricks. They loop de loop. They spiral […]
CS 145 Lecture 18 – Bifurcations and N-way Choices
Agenda what ?s more bifurcations n-way choices restaurand TODO Complete some problems from the Logic-1 section of Coding Bat. Write down the names of the problems you solve (and any other interesting tidbits of your thought) on a 1/4 sheet for Friday. Note Last time we introduced the bifurcation pattern, where we choose between two […]
CS 145 Lecture 17 – Bifurcations
Agenda what ?s program this bifurcations TODO Tomorrow in lab is our third quiz. Prepare a question (or two or three, in case yours gets nabbed by someone else) to share with your lab group before the quiz. New topics we’ve hit upon include: relational operators and logical operators. Questions should be quick to answer. […]
CS 145 Lecture 16 – Diversions
Agenda what ?s boolean bingo what does this do? computer as pilot TODO Read chapter 4 through section 4.1 in your book. On a 1/4 sheet, write down 2-3 questions, observations, or examples of conditional sequences you see in your life. For extra credit participation: Read about the bitwise operators AND (&), OR (|), XOR […]