In-Class Exercise 1:
Links for the urn problem:
Sketch out (but don't implement) the code that could go
in the method numDrawingsNeeded.
In-Class Exercise 2:
Links for the car-chase problem:
What acceleration does the police car need to catch the
speeder at the 10-mile mark?
In-Class Exercise 3:
Links for the water-spout problem:
Change the xSpread to 0.5, then 0.8. What do you observe?
If one were to draw a histogram of landing points, what
would be the shape of this histogram?
What next
About computing and science/engineering:
- Today, computing is an integral part of any complex system.
- Computation is the third way of doing science.
- For students: computation is a way to learn
science and engineering.
- Differentiates you from "the rest".
We have just completed a standard "CS-1" course.
What next from here:
- A CS-2 course (CS-1112): data structures, problem-solving.
- A CS-3 course (CS-2113): objects, application development, web programming.
- An algorithms course, e.g., CS-4341: Continuous Algorithms.
- Do a project that involves computation and your discipline.
Challenges:
- Skill development in programming.
- Computational problem solving.
In-Class Exercise 4:
Look at an earlier homework, say, from Week 3.
Compare how difficult it is now versus at that time.
What we tried to do in this course:
- Core programming skills: loops, conditionals, arrays.
- (Lots of) practice in programming.
- Applications to science and engineering, including robotics.