Tutorial 6

For this tutorial, I am using the same tutorial as the last tutorial (5), but now want to put some functions in it to to find out how many deposits will be entered as well as withdrawals. I already have the bank record printing out using an array,, but would like to use a function to print this out. I am also trying to have the functions print out deposits and withdrawals and would like to have a function by sending the closing balance into a function. 
The book instructs to have at least 3  functions in the program and to have it print out more than just a line of text. That’s why I want to have a function to find out how many deposits will be entered, and the same goes for the withdrawals. It would also be nice to use a function to put the comments that are before the bank record into a function by sending the closing balance into a function.