In this Challenge Lab, you will define functions in an application. First, you will define a function that calculates the mean of a list of numbers, and then you will define a function that calculates the factorial of a number by using recursion. Next, you will calculate the number of possible seats in a room by using the factorial function. Finally, you will define a function that delegates actions to another function to reduce redundancy Note: Once you begin the Challenge Lab, you will not be able to pause, save, or exit and then return to your Challenge Lab. Please ensure that you have set aside enough time to complete the Challenge Lab before you start.
Learning Objectives
In this Challenge Lab, you will define functions in an application. First, you will define a function that calculates the mean of a list of numbers, and then you will define a function that calculates the factorial of a number by using recursion. Next, you will calculate the number of possible seats in a room by using the factorial function. Finally, you will define a function that delegates actions to another function to reduce redundancy Note: Once you begin the Challenge Lab, you will not be able to pause, save, or exit and then return to your Challenge Lab. Please ensure that you have set aside enough time to complete the Challenge Lab before you start.
Framework Connections
Specialty Areas
- Software Development
Feedback
If you would like to provide feedback for this course, please e-mail the NICCS SO at NICCS@hq.dhs.gov.