Value sqrt Value main sqrt Compute parameter b*b–4*a*c Pass parameter to sqrt Compute Wait Use result Pass result to caller main future_value Parameter is initialized when function is called rate p balance b Result is returned when function is finished nyear < 0 Return 0 p < 0 Return 0 b = initial_value 12 × nyear p 12 × 100 ( × 1+ ( Return b future_value main total total/2 initial_balance p rate rate nyear year1 year2 year2-year1 Expressions computed by the caller b Values are copied into parameter variables Parameter variables main raise_salary harry e 5 by reference parameter value parameter Can you ask someone ? Yes Get coffee Ask for coffee No Make coffee Yes Make instant coffee Do you have instant coffee? No Brew coffee Add water to coffee maker Add filter to coffee maker Grind coffee beans Add coffee beans to filter Yes Do you have a microwave? No Boil water Fill cup with water Fill kettle with water Put cup in microwave Bring to a boil Heat 3 min. Mix water and instant coffee Turn coffee maker on Add coffee beans to grinder Grind 60 sec. Get coffee Ask for coffee Make coffee Make instant coffee Boil water Fill cup with water Put cup in microwave Heat 3 minutes Fill kettle with water Bring to a boil Mix water and instant coffee Brew coffee Add water to coffee maker Add filter to coffee maker Grind coffee beans Add coffee beans to grinder Grind 60 seconds Add coffee beans to filter Turn coffee maker on John Wiley & Sons, Inc. 605 Third Avenue New York, NY 10158_0012 , Publishers Bank Minnesota 2000 Prince Blvd Jonesville, MN 55400 CHECK NUMBER 063331 Date 74-39 567390 311 Amount ****10,974.79 TEN THOUSAND NINE HUNDRED SEVENTY FOUR AND 79 / 100 ************************** TO THE ORDER OF: PAY JOHN DOE 1009 Franklin Blvd Sunnyvale, CA 95014 4659484 04/29/96 $ *************** ECRLOT CODE C671RTS2 JOHN DOE 1009 FRANKLIN BLVD SUNNYVALE CA 95014 – 5143 ** CO57 CO57 Frame bars Digit 1 Digit 2 Digit 3 Digit 4 Digit 5 Check Digit int_name(n = 416) int_name(n = 416) c r 416 "" digit_name(n = 4) Returns "four" int_name(n = 416) c r 416 16 "" "four hundred" int_name(n = 416) c r 416 16 "" "four hundred" 0 "four hundred sixteen"