Assignment 1

Write four services A, B, C, D. Service A knows how to add integers. Service B knows how to multiply integers using additions provided by service A. Service C knows how to calculate powers of integers, again using service B. Service D evaluates a polynomial with integer coefficients using services A, B, and C.