SOLUTIONS TO PROGRAMMING PROJECTS
TO ACCOMPANY
PROBLEM
SOLVING
WITH
C++
Eighth Edition
Walter Savitch
UNIVERSITY OF CALIFORNIA, SAN DIEGO
http://www.pearsonhighered.com/savitch/
and please visit our general computer science and engineering web site at:
http://www.pearsonhighered.com/cs/
,Copyright © 2012 by Pearson Education, Inc.
All right reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical, photo-
copying, recording, or any other media embodiments now known or hereafter to become
,known, without the prior written permission of the publisher. Manufactured in the
United States of America.
Many of the designations used by manufacturers and sellers to distinguish their products
are claimed as trademarks. Where these designations appear in this book, and the
publisher was aware of a trademark claim, the designations have been printed in initial
caps or all caps.
The programs and the applications presented in this book have been included for their
instructional value. They have been tested with care but are not guaranteed for any
particular purpose. The publisher does not offer any warranties or representations, nor
does it accept any liabilities with respect to the programs or applications.
Pearson Education Inc.
501 Boylston St., Suite 900
Boston, MA 02116
,