Common Computer Science References
At the end of this lesson, you will be able to:
understand and create your own function that has a parameter
functions
nil
create your own program that has a function that:
calculates the area of a triangle
it will accept 2 parameters, base and height (cm) as decimals
it will calculate the area and print out the results to 4 decimal places
ensure the "main" function traps "bad" input, then passes only "good" values to the function
recreate the same above program in C
NOTE: You can turn on "Closed Captions" to see a printout of what is being said by selecting the "CC" button.
You can also have it translate the closed captions by going to "Settings, Subtitles/CC, Auto-translate" and then pick your prefered language.