| Due Date | Chapter | Collaboration? | Problems |
|---|---|---|---|
| Wed., Sept. 2 | Sup. Prob. | 1, 2 | |
| Fri., Sept. 4 | Sup. Prob. | 3, 4 | |
| Mon., Sept. 7 | Sup. Prob. | 5 | |
| Fri., Sept. 11 | Chapter 1 | 2, 3, 7, 9 | |
| Wed., Sept. 30 | Chapter 2 | 5bc, 7 | |
| Chapter 4 | 15 | ||
| Fri., Oct. 2 | Sup. Prob. | 6 | |
| Wed., Oct. 28 | Sup. Prob. | 7 | |
| Mon., Nov. 23 | Chapter 8 | 4, 5, 6, 7, 11, 12, 13, 14, 17, 29 | |
| Wed., Dec. 2 | Take-Home Test | Part A: written problems | |
| Fri., Dec. 4 | Take-Home Test | Part B: C++ program | |
Submitting Programs For This Course:
In turning in any programs for the course, please follow these directions:
Write a program that reads an initial amount A and the annual interest rate
R, and then computes and prints the monthly bank balance until the balance
has doubled. The number of the month and the monthly balances should be
printed in a table. For example, if $100.00 were deposited at a 12% annual
interest, the start of the output might look as follows:
To compute the greatest common divisor of two positive integers M and N,
the Euclidean algorithms may be described as follows:
Example: To find gcd(66, 24):
Programming Note: Arrays are not needed in this problem. Rather,
maintain current values for M, N, and the remainder R, and update each
value from one iteration to the next.
Expand class List to include the following operations:
Expand class OrderedList to include the following operations:
Check that both print_last and largest work for both
class List and class OrderedList. Of course,
delete_duplicates will be defined only for class
OrderedList.
Note: While you will need to add the above methods to these
classes, the current implementation should not be changed in any way.
Rather, you only will need to perform additions to the class definitions
and corresponding new implementation. The current methods may not be
altered in this assignment.
This document is available on the World Wide Web as
Some Grading Notes:
// Henry M. Walker
// Box Y-06
// Assignment for Wednesday, September 2
Also, a comment is needed for every definition of a C++ function, method,
or class, stating in English what that program unit is supposed to do.
submit filename
where filename is the name of the file in which you want the session
stored.
cat C++file.cpp
where C++file.cpp is the name of the file containing
your C++ program.
print filename
if ((no_comments)
|| (no_evidence_of_compilation)
|| (no_test_runs)
|| (no_commentary_on_correctness))
return (no_grade);
Supplemental Problems
A triangle cannot be formed from sides of these lengths.
The triangle is equilateral.
The triangle is isosceles (but not equilateral).
The triangle is scalene (no two sides are equal).
Month Balance
0 100.00
1 101.00
2 102.01
...
The value Ri then is the desired gcd(M, N).
Since the remainder is now 0, the gcd(66, 24) is 6, the previously computed
remainder.
http://www.math.grin.edu/~walker/courses/301.fa98/assignments.html
created August 19, 1998
last revised October 7, 1998