Learning Outcome
At the end of this lesson, you will be able to:
- create an application that uses functions
Silent Watching
Review
Lesson
- go over "Functions", Chapter 3
- Computer Based Problem Solving
Activity
- read the following problem:
- A board foot is defined as a piece of wood that is 12 inches wide by 12 inches long by 1 inch thick or 144 inches3
- Create a function called BoardFoot, that has 2 parameters, the length and the width.
- It will then calculate the height, so that the result is exactly 1 board foot and return that value.
Daily Assignment
- post the solution and then the final program on your website
top-down design- flow-chart
pseudo-code- at least three (3) test cases calculated out using some other method then your program (ensure you show how you calculated each one of them out!)
- actual code
- three screen shots of program working (with actual values from your test cases above)
- zipped up solution file
- once your first 2 steps are done, code the next 3
- post all items to your website
Extra
- do the above but overloaded the function so you can enter any 2 parameters and it will calculate the third