16.0k views
22 votes
Donna is writing a program for her book store that will help her monitor inventory. She has many different kinds of books (fiction, non-fiction, textbooks, cookbooks, etc.) that all require different types of data. She has noticed, however, that several pieces of data are the same no matter which type of book she is selling: title and price. She creates some procedures that report the title and price of a book that she can use with any kind of book she sells. This is an example of what computing principle?

User Cal McLean
by
3.8k points

1 Answer

3 votes

Answer:

Abstraction.

Step-by-step explanation:

This is an abstraction because Donna generalized a concept — reporting the title or price of a book — to apply to all types of books. Noticing repeated details or common features and removing them is a key element of abstraction.

User Travis Reeder
by
3.0k points