One: Computer System/ Bonus |
-
Chapter 1 -- Complete Exercises 5 and 6 on page 17 using the processing column of the
IPO chart.
- Only do one version of the algorithm for each exercise.
- This assignment must be entered electronically.
Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Two: Pay/ Rent |
-
Chapter 2 -- Complete Exercises 5 and 6 on page 47 using
IPO chart
with desk checking.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Three: Tip/ Circle |
- Chapter 3 -- Complete Exercises 4 and 6 on page 74 using the
IPO Chart with C++ Code document.
- NOTE: The formula to calculate the
perimeter of a circle is "pi times diameter".
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Four: Miles Per Gallon |
- Chapter 4 -- Complete Exercise 5 on page 111 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- Use functions:
void description();
int getMilesDriven();
int getGallonsUsed();
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Five: Tea |
- Chapter 5 -- Complete Exercise 11 on page 157 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- HINT: Use a character 'Y' to indicate that the customer must pay for
shipping charges and a character 'N' to indicate that the customer does
not pay for shipping charges.
- Use functions:
void description();
int getPounds();
double getPrice();
char getFee();
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Six: Car Sales |
- Chapter 6 -- Complete Exercise 14 on page 204 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- Use functions:
void description();
double getSales();
double calcRate();
double calcCommission(double sales, double rate);
void displayReport(double sales, double rate , double commission);
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Seven: Raise |
- Chapter 7 -- Complete Exercise 29 on page 260 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- Note that this program requires designing and implementing a program that
requires a counter loop and accumulators.
- You are to write this program twice. First you are to use a while loop and
second a for loop.
- Use functions:
void description();
double getBegSalary();
double calcRaiseAmount(double salary, double rate);
double calcNewSalary(double salary, double raise);
double displayReport(double begSalary, double rate, double total);
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Nine: Gross Pay |
- Chapter 9 -- Complete Exercise 22 on pages 366 - 367 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- In addition to the functions stated in the problem, add the function description() and
the function displayReport().
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Ten: Commission |
- Chapter 10 -- Complete Exercise 20 on pages 412 - 413 using the
IPO Chart with Functions document.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- In addition to the functions stated in the problem, add the function description().
Be sure that you use a function with pass by reference. Do not use pass by
reference when only pass by value is needed.
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Eleven: Increase Prices/
Increase 1 Price |
- Chapter 11 -- Complete Exercises 25 and 26 on pages 480 - 481 using the
IPO Chart with Functions document.
- Start the C++ code with your template. (not the Intermediate25.cpp.)Enter your code using the C++ editor,
run, debug, and test your program.
- Use this array for your prices array:
double prices[10] = {10.5, 25.5, 9.75, 6.0, 35.0, 100.4, 10.65, .56, 14.75, 4.78};
- Use pass by reference and pass by value appropriately.
- Remember that arrays are automatically passed by reference.
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Twelve: Display Array |
- Chapter 12 -- Complete Exercise 20 on page 519 using the
IPO Chart with Functions document.
- Display this array:
int nums[2][4] = {{17, 24, 86, 35}, {23, 36, 10, 12}};
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- NOTE: Column by column means displaying all of the values in column 1, then column 2, etc.
Row by row means displaying all of the values in row 1, then row 2.
- Use functions appropriately.
You will need a function called displayColumn and one called displayRow.
- Remember that arrays are automatically passed by reference.
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Thirteen: Color |
- Chapter 13 -- Complete Exercise 22 on page 577 using the
IPO Chart with Functions document.
- Use this
data13.txtdata file.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- Use functions appropriately.
- Files must be used as pass by reference. Files differ from arrays. With a file
your must use the & to indicate pass by reference. And, you must pass
by reference when using a file every time you use it.
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
Fourteen: Sales |
- Chapter 14 -- Complete Exercise 21 on page 620 using the
IPO Chart with Functions document.
- Use this
data14.txt data file.
- Start the C++ code with your template. Enter your code using the C++ editor,
run, debug, and test your program.
- Use functions appropriately.
- For each function you need a prototype, a call, and the definition.
- Paste your output as comments at the bottom of the source code.
- This assignment must be entered electronically. Be sure to include your name on
the document. You may submit through email or hand in at the start of class.
|
|
|
|
|