Screencast-O-Matic is the free and easy way to record your screen.   Try our free Screen Recorder!

Introduction to Functions

Created: Mar 1 2017

Description

Writing functions. Shell program available at http://bowerpower.net/compprog1/vb06/RightTriangleInformation.zip

Notes

1:12

Writing a function that calculates and returns the hypotenuse of a right triangle

2:23

Documenting a function

3:38

A function must return a value

3:50

Calling/activating the calcHypotenuse( ) function

4:52

Writing a function that calculates and returns the perimeter of a triangle

6:45

Calling/activating the calcPerimeter( ) function

7:24

Writing a function that calculates and returns the area of a right triangle

9:18

Calling/activating the calcArea( ) function

9:57

Writing a function that takes two Double parameters and returns a String message about which leg of a right triangle is longer (or if they are equal)

12:04

Calling/activating the CompareLegs( ) function

13:13

Keeping a form at one size

14:28

Functions can often be used in other programs.

Advertisement
close We use cookies to optimize the experience on our website. By continuing to use our website, you are agreeing to our use of cookies. You can learn more in our Privacy Policy.