Structured Data Types (continued)
The motivation for more complex data structures is the desire to model data within the program as it exists in the real world.
Example is a customer record (recall of information about a customer)
- customer name, string, “Rhett Butler”
- company name, string, “Butler, Ltd.”
- last order date, string, “8/12/95”
- las order amount, float, 255.75
- annual orders, float, 12035.20
- credit rating, int, 3
- golf handicap, int, 5
- per name, string, “Fido”