605.404.71 Object-Oriented Programming with C++

Summer 2007

Homework 03

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 4.11, page 85, exercise 3 (*1.5)
  2. Section 4.11, page 86, exercise 4 (*1.5)
  3. Section 4.11, page 86, exercise 5 (*2)
  4. Section 5.9, page 105, exercise 2 (*1.5)
  5. Section 5.9, page 105, exercise 4 (*1)
  6. Section 5.9, page 105, exercise 6 (*1)
  7. Section 5.9, page 105, exercise 10 (*1)
  8. Section 6.6, page 140, exercise 2 (*1) - Looking for parenthesization according to precedence rules defined in the Operator Summary table pages 120-121
  9. Section 6.6, page 141, exercise 11 (*1) - do not "Devise more simple errors and see how the compiler reacts."

Extended Programs

  1. None assigned

Extra Credit

  1. Section 6.6, page 142, exercise 22 (*2.5)
    1. It is acceptable to use file streams other than cin and cout in the solution of this exercise, since we have covered chapter 21.
    2. I have no preference either way for your solution; my solution will utilize input and output of files stored on disk.
    3. Test your program with this input file chap6_22_input.cpp
    4. Follow C++ Program Preparation and Delivery Instructions below

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:24 EDT.

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

Return to 605.404 Course Home Page

Copyright © 2007 John E. Boon, Jr.