1.Matching Problem for Object-Oriented Programming Principles.
Match the vocabulary with their definitions.
Review the chapter vocabulary in the Summary.
Divide and Conquer Principle
Dividing a problem or a task into parts
Information Hiding Principle
Designing a class so that it shields certain parts of an object from other objects
Interface Principle
Objects present an interface to other objects to determine how they interact with each other.
Generality Principle
Objects will be designed as generally as possible.
Encapsulation Principle
Each object is a self-contained module with the attributes and actions necessary for its role.
Extensibility Principle
Objects will be designed so that they can potentially be extended.
2.Matching Problem for Devices and Other Vocabulary.
Match the vocabulary with their definitions.
Review the chapter vocabulary in the Summary.
A disk drive
memory device
mouse
input device
monitor
output device
server
a networked computer that is used to store data for other computers on the network.
Object-Oriented Language
Java is this type of language.
Internet
A network of networks.
HTML
The language web documents are written in.
http
The protocol used by the World Wide Web.
Subsection0.10.2Thinking Exercises
Explain the difference between each of the following pairs of concepts.
hardware and software
systems and application software
compiler and interpreter
machine language and high-level language
general-purpose and special-purpose computer
primary and secondary memory
the CPU and the ALU
the Internet and the WWW
a client and a server HTTP and HTML source and object code
Identify the component of computer hardware that is responsible for the following functions.
executing the fetch-execute cycle
arithmetic operations
executing instructions
storing programs while they are executing
storing programs and data when the computer is off
Explain why a typical piece of software, such as a word processor, cannot run on both a Macintosh and a Windows machine.
What advantages do you see in platform independence? What are the disadvantages?
In what sense is a person’s name an abstraction? In what sense is any word of the English language an abstraction?
Analyze the process of writing a research paper in terms of the divide-and-conquer and encapsulation principles.
Analyze your car by using object-oriented design principles. In other words, pick one of your car’s systems, such as the braking system, and analyze it in terms of the divide-and-conquer, encapsulation, information-hiding, and interface principles.
Make an object oriented analysis of the interaction between, a student, librarian, and a library database when a student checks a book out of a college library.