Recitation 1 should be submitted following directions at:
submissions with deadlines
|
// exps: slow exponentiation
int exps(int A, int B) {
int a = A, b = B;
int d = 1;
while(b > 0) {
d = d*a;
b = b--;
}
return d;
}
|
| d*ab = AB |
| Contents of email submission for Recitation 1: Your last name, Your first name; CS 3343; Recitation 1. 1. through 10.: answers to the questions. For question 9. only, include the entire source code (all source code files) for a queue that uses a size variable. At the end append the results of a run. Finally answer the two questions at the end of 9. (Remember, just a single .txt file, with the parts concatenated together.) |