-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
26 lines (24 loc) · 877 Bytes
/
Student.java
File metadata and controls
26 lines (24 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Student.java: interface for Student
// COS 445 HW1, Spring 2018
// Created by Andrew Wonnacott
import java.util.List;
public interface Student {
// Given the stats of this simulation, output which schools to apply to
// aptitude is drawn from U[0, S]
// schools denote the qualities of the colleges drawn from U[0, T] and
// are passed in monotonically decreasing order
// synergies are drawn from U[0, W]
// schools.length == synergies.length == N >= 10
// Return the indicies of the schools to which you want to apply.
// Return value `ret` must hold:
// * ret.length == 10 and the elements of ret are all different
// * forall school in ret, 0 <= school < schools.length
public int[] getApplications(
int N,
double S,
double T,
double W,
double aptitude,
List<Double> schools,
List<Double> synergies);
}