COSC 1337 - Programming Fundamentals II
Chapter 4 Review Exercises
I recommend that you review the chapter by doing these exercises. I will NOT grade these exercises.
Consider reviewing the Checkpoint questions from this chapter.
Answers to Checkpoint questions are in Appendix P (on the CD that came with your textbook).
Review Questions and Exercises: 1, 3, 5, 7, 9, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33.
Answers to Review Questions and Exercises are in Appendix Q (on the CD that came with your textbook).
Other Questions
1. A company pays its sales people $200 per week plus 9 percent of their gross sales for the week. Write declarations for variables to hold a salesperson's gross weekly sales and weekly pay. Write a statement to calculate the weekly pay and store it in your variable.
2. Given float variables predictedHigh and actualHigh, write a C++ statement or statements that print:
3. Write a C++ statement that means the same thing as this math expression:
0 < length < 10
Answers to Other Questions are here.
© Austin Community College 2016. The content on this page is licensed under a
Creative Commons Attribution 4.0 International License.
Last updated: July 8, 2013