Given the following code | Computer Science homework help