Electrical and Computer Engineering
12 of 24
UAH
CPE 112
Level 1 Functional Decomposition
•Get Data (Out: crew, passengers, closet, baggage, fuel)
•   Prompt for numer of crew, number of passengers, weight in closet  and baggage compartments, and gallons of fuel
•     Read crew, passengers, closet, baggage, fuel
•     Echo print the input
•CrewMoment (In: crew) Out Function Value
•   Return crew * 170 * 143
•Cargo Moment (In: closet, baggage) Out: Function value
•   Return closet * 182 + baggage * 386