public class Lab
extends java.lang.Object
Constructor and Description |
---|
Lab(int cap,
java.lang.String d) |
Modifier and Type | Method and Description |
---|---|
void |
calculateAvg()
calculate the avg of students grades
|
void |
enrollStudent(Student std)
gives student and adds to students array
|
double |
getAvg()
get the avg
|
int |
getCapacity()
get the capacity of laboratory
|
java.lang.String |
getDay()
get the day of laboratory
|
Student[] |
getStudents()
get the students array
|
void |
print()
prints the laboratory information
|
void |
setCapacity(int capacity)
set the laboratory capacity
|
void |
setDay(java.lang.String day)
set the day of laboratory
|
void |
setStudents(Student[] students)
set the students
|
public Lab(int cap, java.lang.String d)
cap
- the capacity of laboratoryd
- the day of laboratorypublic void enrollStudent(Student std)
std
- the student that will be addedpublic void print()
public Student[] getStudents()
public void setStudents(Student[] students)
students
- the new students that will be addedpublic double getAvg()
public void calculateAvg()
public java.lang.String getDay()
public void setDay(java.lang.String day)
day
- new daypublic int getCapacity()
public void setCapacity(int capacity)
capacity
- the new capacity