Starting Out With Programming Logic & Design - Chapter6 - Functions
Starting Out With Programming Logic & Design - Chapter6 - Functions
Functions
Second Edition
by Tony Gaddis
Chapter Topics
6.1 Introduction to Functions: Generating
Random Numbers
6.2 Writing Your Own Functions
6.3 More Library Functions
1-2
Library functions
Written functions that come with most languages
Usually common tasks and save time for the
programmer because it allows for code reuse
Copyright 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
1-3
Game programs
Simulation programs
Statistical programs
Computer security such as encryption
1-4
1-5
1-6
Processing
Prompts the user to enter an
items regular price
Output
The items regular
price, as a Real
1-7
1-8
1-9
1-10
1-11
1-12
1-13