Title: Chapter 13 Review
Course: Programming Fundamentals II (TEMPLATE)

COSC 1337 - Programming Fundamentals II

Chapter 13 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).

Be sure to review Chapter 3 section 3.12 and chapter 5 section 5.9.

From section 13.5, only the getline() and get() member functions from the beginning of the section will be covered on the exam. Sections 13.6 - 13.12 will not be covered.

Other Questions

1. Write code to input 10 names (which may contain spaces) from the keyboard and output the names to a file. Include the declaration for your file object and code to open the file. The file should be named "friends.txt".

2.A file contains one line of information about each home that was sold in Austin last year. You do not care about the information in the file, but you do need to know how many homes were sold in Austin last year. Write C++ code to do the job. Include the declaration for your file object and code to open the file. The file is named "HomeSales.txt", and each line in the file is 65 characters or less.

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 26, 2013