Content
Practical
100

what is a function? 

A function is a set of statements that are put together to perform a specific task.

100

what is the name of the function? 

void comSci () {

printf ("We love com sci"); 

comSci

200

syntax of a function 

return_type function_name () { 

function body 

200

write a function to print "Happy Tuesday" 

void myFunction () {

printf ("Happy Tuesday"); 

300

parameters vs arguments 

parameters-placeholders for values 

arguments- actual values inputted 

300

declare a global variable 

int globalVar = 2; 

400

what is the purpose of our IA?

To track and manage books and overdue fines in a library

400

Function syntax in our IA

float overdue (int days, float rate) {

return days * rate;