-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschedule.py
82 lines (72 loc) · 2.66 KB
/
schedule.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import datetime
from buckets import Buckets
from student import Student
import random
import classes
## Eventually, times will be replaced by variable names given by csv (not available yet)
#
# BReading = classes("BReading", ["8am", "9:15", "10:30"], 20)
# IReading = classes("IReading", ["8am", "9:15", "10:30"], 20)
# AReading = classes("AReading", ["8am", "9:15", "10:30"], 20)
# BMath = classes("BMath", ["9:15", "10:30", "1:00"], 20)
# IMath = classes("IMath", ["9:15", "10:30", "1:00"], 20)
# AMath = classes("AMath", ["9:15", "10:30", "1:00"], 20)
# BASL = classes("BASL", ["10:30", "1:00", "2:15"], 20)
# IASL = classes("IASL", ["10:30", "1:00", "2:15"], 20)
# AASL = classes("AASL", ["10:30", "1:00", "2:15"], 20)
# Presentations = classes("Presentations", ["1:00", "2:15", "3:30"], 20)
# Lunch = classes("Lunch", ["11:45"], 100000)
# Mentoring = classes("Mentoring", ["8am", "9:15am", "2:15"], 20)
def assignment(student: Student):
## English
if student.english == "beginner":
NAN=0
##choose one BReading time
# class cannot be full
##time cannot be taken on the students schedule
elif student.english == "intermediate":
NAN = 1
##choose one IReading time
# class cannot be full I
##time cannot be taken on the students schedule
elif student.english == "advanced":
NAN = 0
##choose one AReading time
# class cannot be full
##time cannot be taken on the students schedule
## Math
if student.math == "beginner":
NAN = 0
##choose one BMath time
# class cannot be full
##time cannot be taken on the students schedule
elif student.math == "intermediate":
NAN = 1
##choose one IMath time
# class cannot be full
##time cannot be taken on the students schedule
elif student.math == "advanced":
NAN = 2
##choose one AMath time
# class cannot be full
##time cannot be taken on the students schedule
## ASL
if student.ASL == "beginner":
NAN = 0
##choose one BASL time
# class cannot be full
##time cannot be taken on the students schedule
elif student.ASL == "intermediate":
NAN = 1
##choose one IASL time
# class cannot be full
##time cannot be taken on the students schedule
elif student.ASL == "advanced":
NAN = 2
##choose one AASL time
# class cannot be full
##time cannot be taken on the students schedule
##choose one presentation time
##choose one mentoring time
##all students will have lunch at 11:45
## Students need ONE CLASS from EACH SUBJECT