Files
CS345-Software-Engineering/Homework 5/src/grading/GradingStrategy.java
2025-09-10 14:25:37 -04:00

20 lines
545 B
Java
Executable File

package grading;
import java.util.*;
/**
* An interface for strategies of calculating a final grade from a list of grades.
*/
public interface GradingStrategy
{
/**
* @param key
* The key for the final calculated grade
* @param grades
* The list of grades to from which to calculate the final grade
* @return A new grade representing the final grade calculated from grades
* @throws SizeException
*/
public Grade calculate(String key, List<Grade> grades) throws SizeException;
}