for each function describe what the function actually does

https://s3.us-east-1.amazonaws.com/blackboard.learn.xythos.prod/584b12a1a0ed8/3824847?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27Homework4.pdf&response-content-type=application%2Fpdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20200426T222636Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIL7WQYDOOHAZJGWQ%2F20200426%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=018b3a649f79aaa79b78c021a897f69e460267275fa8a1ab6a682cba0a83b6df

make the codes as simple as posible