Programming Assignment 1: Power Consumption