Functions that Return a Value PURPOSE 1. To introduce the concept of scope 2. To understand the difference between static, local and global variables 3. To introduce the…