605.404.71 Object-Oriented Programming with C++

Summer 2007

Homework 02

(Modified)

John E. Boon, Jr.

Lecturer in the Engineering and Applied Science Programs for Professionals

Johns Hopkins University

For all JHU-related matters contact Mr. Boon via email at jboonjr@apl.jhu.edu

problem_points = ceil[ exp(*problem_difficulty) ]

Exercises

  1. Section 21.10, pg 655, exercise 7 (*4) (Follow C++ Program Preparation and Delivery Instructions below)
    1. Use a buffer that holds 11 characters
    2. Read input from a file with the following contents:
      1234567890
      a b c d e
      a   9
      ABC DEF GZ
      z9a1b2c3 9
      ,:(*?a1}*!
      12 13 99 AB     
      
      
    3. Output as much of each input line that can be processed according to the problem's instructions to an output file before reading in the next input file line.

Extended Programs

  1. None assigned

Extra Credit

  1. None assigned

C++ Program Preparation and Delivery Instructions:

  1. CD formatted for Windows/Intel OR single .zip file transmitted to jboonjr@apl.jhu.edu containing:
    1. program source code, including completed code header documentation and
    2. data file(s) required by your program
  2. printed listing(s) of your program(s) (NOTE: limit wrapped lines and prevent truncated lines in your printed output)
  3. printed test case(s) and result(s)

Page last updated Sunday, 17-Jun-2007 15:44:26 EDT.

There have been [TextCounter Fatal Error: Could Not Write to File _Notes_Boon_605404_homework_HW02_S07_shtml].

Return to 605.404 Course Home Page

Copyright © 2007 John E. Boon, Jr.