One: Bonus Discount |
- Chapter 1 -- Complete Exercises 3 and 4 on page 17.
Only do one version of the algorithm for each exercise.
|
Two: Sales Checking |
- Chapter 2 -- Complete Exercise 2 on page 61 AND Exercise 2 on pages 78-79.
|
Three: Tax |
- Chapter 3 (state income tax) -- Complete Exercises 5 and 6 on pages 110 - 111.
Additionally, you must code and execute the program. Be sure
to include your IPO chart as either comments in the C++ program
or as a separate document. Remember to include the description
prototype, call, and function that is required on all programs.
|
Four: Packing |
- Chapter 4 (packing a box using modulus) -- Complete Exercise 8 on page 218. Place your IPO
information as comments inside your C++ source file and paste
your output as comments at the bottom of the source code. Remember to include the description
prototype, call, and function that is required on all programs. Also, use "get()" functions for
input. See lab 2 instructions for writing value returning functions.
|
Five: Seminar |
- Complete Exercise 5 on page 287. Be sure that your test data verifies
that your program properly identifies invalid input values for the number
of participants.
Place your IPO information as comments inside your C++ source file and
paste your output as comments at the bottom of the source code.
|
Six: Calories |
- Complete Exercise 6 on page 355.
Place your IPO information as comments inside your C++ source file and
paste your output as comments at the bottom of the source code. Be sure
that your program and test data properly detect invalid input values for
gender.
|
Seven: Seminar |
- Chapter 7 -- Complete Exercise 4 on page 423.
Place your IPO information as comments inside your C++ source file and
paste your output as comments at the bottom of the source code. Note that
this program requires designing and implementing a program that requires
a sentinel loop, counters, accumulators, and averages.
|
Eight: Sales |
- Chapter 8 -- Complete Exercise 5 on page 471.
NOTES: A proper solution for this problem requires a design
using nested repetition structures (loops). The fours sets of
test data are for each of the four regions (North, South, East
and West). The three numbers in each set are the sales for months
1, 2 and 3.
Place your IPO information as comments inside your C++ source file
and paste your output as comments at the bottom of the source code.
|
Nine: Temperature |
- Complete Exercise 1 on page 541. This requires implementing a design from
the book that has a main function and two value returning functions.
Place your IPO information for each function as comments inside your C++ source
file and paste your output as comments at the bottom of the source code.
|
Ten: Payroll |
- Chapter 10 -- Complete Exercise 1 on pages 598 - 600. This design
requires implementing a main function and four void functions and
will require the use of reference parameters. Be sure that you use
reference parameters ONLY where necessary.
Place your IPO information for each function as comments inside your C++ source
file and paste your output as comments at the bottom of the source code.
|
| Eleven: |
- Chapter 11 -- Complete Exercises 3 and 4 on pages 679 - 680. You are required to
use functions to implement these problems and this will actually make the problems easier.
For example in Exercise 3, you may find it very helpful to imoplement a function called
findSmallest and printSmallest, and in Exercise 4 functions called getIncrease, increasePrices
and displayPrices. Remember that arrays are automatically passed by reference.
Place your IPO information for each function as comments inside your C++ source
file and paste your output as comments at the bottom of the source code.
|
| Twelve: |
- Chapter 12 -- Complete Exercise 3 on page 734. You are required to use functions to implement this problem
and this will actually make the problems easier. You may find it very helpful to have functions called
getItemNumber and checkItemNumber.
Place your IPO information for each function as comments inside your C++ source file and paste your
output as comments at the bottom of the source code.
|
| Thirteen: |
- Chapter 13 -- Complete Exercise 4 on page 806.
Place your IPO information as comments inside your C++ source file and
paste your output as comments at the bottom of the source code.
numbers.txt
|
|
|
|