CMU 15-110: Principles of Computing
Week2 Practice (Due never)


Contents:
  1. Code Tracing
  2. distance(x1, y1, x2, y2)
  3. fabricYards(inches)
  4. fabricExcess(inches)
  5. isMultiple(m, n) and isFactor(f, n)
  6. numberOfPoolBalls(rows)
  7. getFacultyOfficeHours(day)
  8. nearestBusStop(street)

1. Code Tracing
What will this code print? Figure it out by hand, then run the code to confirm. Then slightly edit the code and try again.