diff --git a/Document_1.pde b/Document_1.pde new file mode 100644 index 0000000..1695d8d --- /dev/null +++ b/Document_1.pde @@ -0,0 +1,20 @@ +void setup() { + size(800,600); + background(355,100,400); +} + +void draw() { + drawRedRect(); +} + +void drawRedRect() { + rect(width/3,height/3,400,250); + fill(300,70,0); +} + + + + + + + \ No newline at end of file diff --git a/Document_2/Document_2.pde b/Document_2/Document_2.pde new file mode 100644 index 0000000..118882f --- /dev/null +++ b/Document_2/Document_2.pde @@ -0,0 +1,11 @@ +void setup() { + size(800, 600); +} +void draw() { + println(trianglearea(5, 20)); +} + +float trianglearea (float b, float h) { + float result= 0.5*b*h; + return result; +} \ No newline at end of file diff --git a/Document_3/Document_3.pde b/Document_3/Document_3.pde new file mode 100644 index 0000000..bfe09d4 --- /dev/null +++ b/Document_3/Document_3.pde @@ -0,0 +1,12 @@ +void setup() { + size(800,600); +} + +void draw(){ + println(force(7,9.8)); + +} +float force(float m, float a) { + float result = m*a; + return result; +} \ No newline at end of file diff --git a/Documentation1.md b/Documentation1.md index 28f94fa..f96ba36 100644 --- a/Documentation1.md +++ b/Documentation1.md @@ -1,19 +1,21 @@ -# Name: +# RedRectangle: ## Examples: -Insert examples here. +void draw() { + drawRedRect(); +} ## Description: -Insert description here +Function that when calls draws a large red rectangle on the screen ## Syntax: -Demonstrate syntax here +drawRedRect(); ##Parameters: -Name and describe parameters here +none ##Returns: -What type of data does it return? +void ##Other notes: Anything else? diff --git a/Documentation2.md b/Documentation2.md index 28f94fa..1adce05 100644 --- a/Documentation2.md +++ b/Documentation2.md @@ -1,19 +1,21 @@ -# Name: +# Area of Triangle: ## Examples: -Insert examples here. - +void draw() { + println(trianglearea(5, 20)); +} ## Description: -Insert description here +this function finds the area of a triangle ## Syntax: -Demonstrate syntax here +println(trianglearea(a, b)); ##Parameters: -Name and describe parameters here +a: base +b: height ##Returns: -What type of data does it return? +int ##Other notes: Anything else? diff --git a/Documentation3.md b/Documentation3.md index 28f94fa..e7318b6 100644 --- a/Documentation3.md +++ b/Documentation3.md @@ -1,19 +1,21 @@ -# Name: +# Force: ## Examples: -Insert examples here. +void draw(){ + println(force(7,9.8)); + } ## Description: -Insert description here +this function finds the force by multiplying the mass times the acceleration ## Syntax: -Demonstrate syntax here +float force(m, a); ##Parameters: -Name and describe parameters here - +m: mass +a: acceleration ##Returns: -What type of data does it return? +int ##Other notes: Anything else?