16. cout << pow(numbers[0], 2); or cout << pow(numbers[0], 2.0);
Exercises – Computer
17. The answer to this TRY THIS Exercise is located at the end of Chapter 11 in the book. The code is entered
in the TryThis17.cpp file, which is contained in either the Cpp8\Chap11\TryThis17 Project-IM folder
(Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
18. The answer to this TRY THIS Exercise is located at the end of Chapter 11 in the book. The code is entered
in the TryThis18.cpp file, which is contained in either the Cpp8\Chap11\TryThis18 Project-IM folder
(Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
22. See the Introductory22.cpp file, which is contained in either the Cpp8\Chap11\Introductory22 Project-IM
folder (Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
23. See the Intermediate23.cpp file, which is contained in either the Cpp8\Chap11\Intermediate23 Project-IM
folder (Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
24. See the Intermediate24.cpp file, which is contained in either the Cpp8\Chap11\Intermediate24 Project-IM
folder (Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
25. See the Intermediate25.cpp file, which is contained in either the Cpp8\Chap11\Intermediate25 Project-IM
folder (Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
26. See the Advanced26.cpp file, which is contained in either the Cpp8\Chap11\Advanced26 Project-IM folder
29. See the Advanced29.cpp file, which is contained in either the Cpp8\Chap11\Advanced29 Project-IM folder
(Microsoft) or the Cpp8\Chap11 folder (non-Microsoft). Twelve salespeople earned a commission from
100 through 300. Three salespeople earned a commission from 700 through 800. Seven salespeople earned
a commission from 0 through 200.
30. See the Advanced30.cpp file, which is contained in either the Cpp8\Chap11\Advanced30 Project-IM folder
(Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
31. See the Advanced31.cpp file, which is contained in either the Cpp8\Chap11\Advanced31 Project-IM folder
(Microsoft) or the Cpp8\Chap11 folder (non-Microsoft).
32. See the Advanced32.cpp file, which is contained in either the Cpp8\Chap11\Advanced32 Project-IM folder