Name (print clearly): _________________________________________________


Student ID (print clearly; 1 digit per underline): _____ _____ _____ _____ _____ _____

CSE 231s Quiz 11: Student Credits and Optional<T>

The University Registrar has assigned you the task of checking to ensure that every student is carrying the appropriate number of credits.  Their database is organized by courses.
Given the API below write a combination of high-level design document and pseudocode to solve this problem.

final int MINIMUM_ALLOWED_CREDITS = ...;

class Course:
    List<Student> getStudents()
    int getNumCredits()

Course[] courses = ...;

 

 

 

 

 

 

 

 

 

Imagine while building the selectNextUnfilledSquare method on the RowMajorSquareSearchAlgorithm you built a utility method isFilled:

private static boolean isFilled(ImmutableSudokuPuzzle puzzle, Square square) {
	if(!puzzle.getValue(square).equals(Optional.empty())) {
		return true;
	} else {
		return false;
	}
}

Given the documentation for java.util.Optional<T>, implement a better method below: