CarpetCalculator: Assignment 8B

Last half of the last homework assignment in Programming 1.