1. CHAPTER 6FUNCTION1 2. What is function?A function is a section of a program that performs a specific task .Solving a problem using different functions makes programming…