At the end of this lesson, you will be able to:
- understand and use procedures that pass a variable by reference
- procedures, passing a variable by value
- procedures, passing a variable by reference
- look at "ByRef Example" below
- create a program that will accept a number with decimals
- you also tell the program how many decimal places you want to round off to
- the program then passes the variables in
- Hint:
- multiply number by 10 to the power of how many decimal points you want
- add 0.5
- convert to integer
- move decimal point back
- do:
- flowchart
- test cases
- code
- screenshot
- GitHub
- work on the weekly assignment
- read over procedures, optional parameters, Chapter 4
- Computer Based Problem Solving