CS 115 Lab 6, Fall 2015
Deadlines
- Writeup and code (lab06c.py): Tu 10/6/2015 at 4 PM
- Demo (parts A and C): Any lab section, workshop, or open tutoring session before Tu 10/6 at 4 PM.
Goals
Upon successful completion of this lab, you should be able to understand and write programs
using while (indefinite) loops.
Lab Instructions
Follow the links below to complete each part of this lab.
Setup and practice
- Basic while loops: the Collatz sequence
- Find the largest power of 2 less than a number
- Write a number as the sum of powers of 2
- Submit your assignment