|
|
 |
|
|
|
|
floor function, A7 |
|
|
|
 |
|
|
|
|
Flow of control. |
|
|
|
 |
|
|
|
|
See Control structures |
|
|
|
 |
|
|
|
|
FLT_DIG constant, A5 |
|
|
|
 |
|
|
|
|
FLT_MAX constant, 508, A5 |
|
|
|
 |
|
|
|
|
FLT_MIN constant, 508, A5 |
|
|
|
 |
|
|
|
|
for loops, 468-471, 600, 714-720, 726 |
|
|
|
 |
|
|
|
|
Form feed, escape sequence for, 521 |
|
|
|
 |
|
|
|
|
Formal parameters, 332-333, 342-343, 347, 349-351, A18 |
|
|
|
 |
|
|
|
|
Formatting |
|
|
|
 |
|
|
|
|
function headings, 358-359 |
|
|
|
 |
|
|
|
|
output, 105-113 |
|
|
|
 |
|
|
|
|
programs, 113-115, A36-A37 |
|
|
|
 |
|
|
|
|
FORTRAN language, 1120 |
|
|
|
 |
|
|
|
|
Forward declarations, 336, 1051-1052 |
|
|
|
 |
|
|
|
|
Fractions, representation of, 527-528 |
|
|
|
 |
|
|
|
|
Free format, 113 |
|
|
|
 |
|
|
|
|
Free store, 981-986 |
|
|
|
 |
|
|
|
|
FreezeBoil program, 72-73 |
|
|
|
 |
|
|
|
|
Frequency counts for characters, 619-635 |
|
|
|
 |
|
|
|
|
Friends program, 802-809 |
|
|
|
 |
|
|
|
|
fstream.h file, 146, 849 |
|
|
|
 |
|
|
|
|
FuelMoment function (Starship), 443-444 |
|
|
|
 |
|
|
|
|
FuelMomentDriver program, 447-448 |
|
|
|
 |
|
|
|
|
Full logical expression evaluation, 196 |
|
|
|
 |
|
|
|
|
Funct function (Area), 558 |
|
|
|
 |
|
|
|
|
Function return values |
|
|
|
 |
|
|
|
|
data types for, 408-410 |
|
|
|
 |
|
|
|
|
with enumeration types, 542-544 |
|
|
|
 |
|
|
|
|
ignoring, 416-417 |
|
|
|
 |
|
|
|
|
from main, 45, 73, 215 |
|
|
|
 |
|
|
|
|
objects as, 846 |
|
|
|
 |
|
|
|
|
records (structs) as, 777 |
|
|
|
 |
|
|
|
|
type coercion in, 549-551 |
|
|
|
 |
|
|
|
|
Functional cohesion, 155-156, 425 |
|
|
|
 |
|
|
|
|
Functional equivalence, 154 |
|
|
|
 |
|
|
|
|
Functional notation for type casting, 514 |
|
|
|
 |
|
|
|
|
Functions, 42-43 |
|
|
|
 |
|
|
|
|
abstraction with, 424-425 |
|
|
|
 |
|
|
|
|
Boolean, 412-415 |
|
|
|
 |
|
|
|
|
calling, 43-44, 100-102, 141, 334-335 |
|
|
|
 |
|
|
|
|
declaring, 328, 335-338 |
|
|
|
 |
|
|
|
|
definitions for, 72, 74, 327-328, 335-338, A12 |
|
|
|
 |
|
|
|
|
designing, 352-356 |
|
|
|
 |
|
|
|
|
and flow of control, 329-330 |
|
|
|
 |
|
|
|
|
header files for, 341-342 |
|
|
|
 |
|
|
|
|
headings for, 49, 72, 326-327, 358-359 |
|
|
|
 |
|
|
|
|
integrating, 551-558 |
|
|
|
 |
|
|
|
|
library. |
|
|
|
 |
|
|
|
|
See Library functions |
|
|
|
 |
|
|
|
|
local variables in, 338-339 |
|
|
|
 |
|
|
|
|
modules as, 325-328 |
|
|
|
 |
|
|
|
|
names for, 327, 341, 391, 414-415 |
|
|
|
 |
|
|
|
|
observer, 841, 851, 858 |
|
|
|
 |
|
|
|
|
overriding, 913 |
|
|
|
 |
|
|
|
|
parameters for. |
|
|
|
 |
|
|
|
|
See Parameters |
|
|
|
 |
|
|
|
|
prototypes for, 328, 335-337 |
|
|
|
 |
|
|
|
|
recursive. |
|
|
|
 |
|
|
|
|
See Recursion |
|
|
|
 |
|
|
|
|
return statement in, 49, 339-341, 409 |
|
|
|
 |
|
|
|
|
return values from. |
|
|
|
 |
|
|
|
|
See Function return values |
|
|
|
 |
|
|
|
|
syntax templates for, A12, A14 |
|
|
|
 |
|
|
|
|
testing and debugging, 369-374 |
|
|
|
 |
|
|
|
|
in top-down design, 324-328 |
|
|
|
 |
|
|
|
|
value-returning, 44, 99-103, 404-414 |
|
|
|
 |
|
|
|
|
virtual, 928-930 |
|
|
|
 |
|
|
|
|
void, 104-105 |
|
|
|
 |
|
|
|
|
Furniture store sales case study, 362-369, 426-433 |
|
|
|
 |
|
|
|
|
Game program, 563-569 |
|
|
|
 |
|
|
|
|
Games |
|
|
|
 |
|
|
|
|
rock, paper, scissors, 559-569 |
|
|
|
 |
|
|
|
|
solitaire simulation, 1090-1109 |
|
|
|
 |
|
|
|
|
Towers of Hanoi, 1127-1132 |
|
|
|
 |
|
|
|
|
Gas mileage case study, 81-84, 149-151 |
|
|
|
 |
|
|
|
|
Gender and income case study, 286-292 |
|
|
|
 |
|
|
|
|
General case in recursion, 1121 |
|
|
|
 |
|
|
|
|
get function, 138-141, 673-675 |
|
|
|
 |
|
|
|
|
Get12Amounts function (Rainfall), 489 |
|
|
|
 |
|
|
|
|
GetAName function, 723-724 |
|
|
|
 |
|
|
|
|
GetCharList function (Count), 624-625 |
|
|
|
 |
|
|
|
|
GetClassRoster function (Exam), 690-691 |
|
|
|
 |
|
|
|
|
GetCurrentDate function (BirthdayCalls), 887-888 |
|
|
|
 |
|
|
|
|
GetData functions |
|
|
|
 |
|
|
|
|
in Absentee, 750 |
|
|
|
 |
|
|
|
|
in Area, 557 |
|
|
|
 |
|
|
|
|
in Graph, 367-368, 431-432 |
|
|
|
 |
|
|
|
|
in Starship, 441 |
|
|
|
 |
|
|
|
|
GetEntry functions |
|
|
|
 |
|
|
|
|
in BirthdayCalls, 888 |
|
|
|
 |
|
|
|
|
in Friends, 804 |
|
|
|
 |
|
|
|
|
GetID function (PunchIn), 954 |
|
|
|
 |
|
|
|
|
GetMonth function (BirthdayReminder), 573-574, 578-579, 573-574, 578-579, 679-682 |
|
|
|
 |
|
|
|
|
GetName function (Friends), 805 |
|
|
|
 |
|
|
|
|
GetNames function (Election), 735-736 |
|
|
|
 |
|
|
|
|
GetOneAmount function (Rainfall), 490-491 |
|
|
|
 |
|
|
|
|
GetPhoneNumber function (Friends), 805 |
|
|
|
 |
|
|
|
|
GetPlays function (Game), 564-565 |
|
|
|
 |
|
|
|
|
GetRecord function (RecordList class), 1009-1012 |
|
|
|
 |
|
|
|
|
GetRecords function (MergeLists), 816-817 |
|
|
|
 |
|
|
|
|
GetTempfunction (Activity), 346, 360-361 |
|
|
|
 |
|
|
|
|
GetYesOrNo function (Rainfall), 490 |
|
|
|
 |
|
|
|
|
Global constants, 404 |
|
|
|
 |
|
|
|
|
Global scope, 391 |
|
|
|
 |
|
|
|
|
Global variables |
|
|
|
 |
|
|
|
|
external, 396-397 |
|
|
|
 |
|
|
|
|
in functions, 338 |
|
|
|
|
|