Java Reference
In-Depth Information
APPENDIX E
A NSWERS TO
O DD- N UMBERED
E XERCISES
Chapter 1
1.
a. False; b. False; c. True; d. False; e. False; f. True; g. True; h. False;
i. False;
j. True; k. False; l. True
3. Monitor and printer.
5. An operating system monitors the overall activity of the computer and provides
services. Some of
these services
include memory management,
input/output
activities, and storage management.
7. In machine language the programs are written using the binary codes while in high-level
language the programs are closer to the natural language. For execution, a high-level
language program is translated into the machine language while a machine language
need not be translated into any other language.
9. Syntax errors.
11. Instructions in a high-level language are closer to the natural language, such as English,
and therefore, are easier to understand and learn than the machine language.
13. To find the weighted average of four test scores, first you need to know each test
score and its weight. Next, you multiply each test score by its weight and then add
these numbers to get the average. Therefore:
1. Get testScore1, weightTestScore1
2. Get testScore2, weightTestScore2
3. Get testScore3, weightTestScore3
4. Get testScore4, weightTestScore4
5. sum = testScore1 * weightTestScore1 +
testScore2 * weightTestScore2 +
testScore3 * weightTestScore3 +
testScore4 * weightTestScore4;
15. To calculate the selling price of an item, we need to know the original price (the
price the store pays to buy it) of the item. We can then the use the following
formula to find the selling price:
997
 
Search WWH ::




Custom Search