Enteleform
8/3/2016 - 4:52 AM

https://www.futurelearn.com/courses/creative-coding/3/steps/74854/comments?page=1#comment_14854633

void setup(){ 
	size(300, 300); 
	background(0); 
	print_TotalCost(); 
} 
void draw(){}

void print_TotalCost(){ 
	float materialCost = 5.2; 
	float totalCost = calculate_Area(20.5) * materialCost; 
	print(totalCost); 
}

float calculate_Area(float radius){ 
	return PI*radius*radius; 
}