I assume your friend thinks youâre batty because of your beverage opinions and not for other reasons beyond my expertise. Given that, Iâd have to side with your Perrier-drinking pal, but also assure you that it is a common misconception that carbonation pulls calcium from your bones.
Functions [edit]. A function, which can also be referred to as subroutine, procedure, subprogram or even method, carries out tasks defined by a sequence of statements called a statement block that need only be written once and called by a program as many times as needed to carry out the same task.
Steps to Writing a Function. 1  Understand the purpose of the function. 2  Define the data that comes into the function from the caller (in the form of parameters)! 3  Define what data variables are needed inside the function to accomplish its goal. 4  Decide on the set of steps that the program will use to accomplish this goal.