| Project 1 Grading Criteria |
A Sieve of Eratosthenes
Abstract Data Type
1 Point:
The project compiles and runs, even though possibly incomplete.
1 Point: The
class's Constructor properly initializes all variables.
2 Point: The class executes The Sieve of Eratosthenes
algorithm at an appropriate time,
in a well designed private method.
2 Points: The
class prints all the primes from 2 to the maximum number
passed in a parameter to a well designed public method.
2 Points: The
class prints all the primes from a lower number to an upper
number passed as parameters to a well designed public
method.
2 Points:
The class fills an array passed
in a parameter to a well designed public method with all the primes found, in
order without gaps.
2 Points: The class
determines if a number pass in a parameter to a well designed public method is a
prime or not.
1 Points: All data in your class
is contained in private variables.
1 Points: The
Abstract Data Type uses well designed methods that cannot be
crashed and cannot corrupt the instance variables (the primes array).
1 Points: The
int main()
just creates an object of your class and then tests its methods.
Coding Style ( 1 point for all of the following):
Good indentation.
Good
C++ code style.
Uses a .cpp and .h file
for your Abstract Data Type, and a separate .cpp file for your int main().
Well commented.
Date
due grade: (16 points total) _______________
Final Grade _______________
| Back to Project 1 |
| Csc 125 - Computer Science II, Programming in C++, Fall 2006 |
| Scott Badman Office: B132 Phone: 353-2250 sbadman@parkland.edu |
Parkland College, 2400 W. Bradley Avenue, Champaign, IL 61821 |