10. while (inStock > reorder)
11. quantity –= 5; (or quantity = quantity – 5; or quantity += –5; or quantity =
quantity + –5;)
12. sales –= salesReturns; (or sales = sales – salesReturns;)
13. 1. initialize missed counter to 0
2. position both your right arm and your right hand toward the spider
3. shoot a laser beam at the spider
4. repeat while (the laser beam did not hit the spider)
add 1 to the missed counter
Exercises – Computer
14. The answer to this TRY THIS Exercise is located at the end of Chapter 7 in the book. The code is entered
in the TryThis14.cpp file, which is contained in either the Cpp8\Chap07\TryThis14 Project-IM folder
(Microsoft) or the Cpp8\Chap07 folder (non-Microsoft).
15. The answer to this TRY THIS Exercise is located at the end of Chapter 7 in the book. The code is entered
18. See the Introductory18.cpp file, which is contained in either the Cpp8\Chap07\Introductory18 Project-IM
folder (Microsoft) or the Cpp8\Chap07 folder (non-Microsoft).
19. See the Introductory19.cpp file, which is contained in either the Cpp8\Chap07\Introductory19 Project-IM
folder (Microsoft) or the Cpp8\Chap07 folder (non-Microsoft).