CS 115 Lab 6, Fall 2016
Deadlines
- Writeup and code (lab06c.py): Tu 10/04/2016 at 2 PM
- Demo (parts A and C): Any lab section, workshop, or open tutoring session before Tu 10/04 at 2 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