I have written down all the note I need and I have started writing my function for my code. I have three parameters that will be input into the function to gain the needed result.