Computer Science Using C++

Ch. 8 Exercises Remarks


Exercise 8-1 (p. 139)

Enter the specified code and save as FORLOOP.CPP.

Exercise 8-2 (p. 139)

Enter the specified code and save as BACKWARD.CPP.

Exercise 8-3 (p. 140)

Enter the specified code and save as DBLSTEP.CPP. Be sure to predict the program's output?

Exercise 8-4 (p. 141)

Open BACKWARD.CPP (from Exercise 8-2) and make the following changes.

Exercise 8-5 (p.144)

Enter the specified code and save as WHILE1.CPP.

Exercise 8-6 (p. 145)

Enter the specified code and save as DOWHILE.CPP.

Exercise 8-7 (p. 147)

See the template directory for CONTINUE.CPP and run the program. Be sure to look at the output closely.

Exercise 8-8 (p. 149)

See the template directory for NESTLOOP.CPP and run the program. Learn how to use the Visual C++ debugger by reading Appendix F.

Exercise 8-9 (p. 150)

See the template directory for REPS.CPP. Study the program before you execute it. Test the program by entering invalid data.

Return to Ch. 8 Resources Page


Computer Science Using C++ Home Page | CMPSC 101 Home Page

Mr. Minich's Wyo Home Page | Mr. Minich's PSU Home Page

Minich.com Web Design