Homework 7 calculator