Skip to content

Commit 05442e6

Browse files
committed
2 parents 81bcf44 + 053fdea commit 05442e6

File tree

11 files changed

+96
-41
lines changed

11 files changed

+96
-41
lines changed

AP.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def __init__(self, name, tier, apgrade, score) :
99
self.tier = tier
1010
self.apgrade = apgrade
1111
self.score = score
12-
self.apValue = (score+apgrade)*tier/20
12+
self.apValue = (score*0.25+apgrade*0.75)*tier/20

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# CounselAI-Python
2-
A submission to the Honolulu Tech Week Hackathon, the 2024 Congressional App Challenge, and the National STEM Festival
2+
A submission to the Honolulu Tech Week Hackathon, the 2024 Congressional App Challenge, the National STEM Festival, and the Conrad Challenge. It has scored 2nd place for Congressional App Challenge for HI-01 and National STEM Festival Champion for HI.

main.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class app() :
3131
"Pre-calculus",
3232
"Statistics",
3333
"Pyschology",
34-
"US History",
3534
]
3635

3736
AP_T3 = [
@@ -50,6 +49,7 @@ class app() :
5049
"European History",
5150
"Macroeconomics",
5251
"Microeconomics",
52+
"US History",
5353
]
5454

5555
AP_T4 = [
@@ -368,7 +368,7 @@ def intro_5th_slide_sat_score(self,) :
368368
def intro_5th_slide_sat_score_validator(self,) :
369369
try :
370370
self.sat_score = int(self.sat_tb.get())
371-
assert(isinstance(self.sat_score/10, int) or (self.sat_score/10).is_integer())
371+
assert(isinstance(self.sat_score/10, int))# or (self.sat_score/10).is_integer())
372372
assert(self.sat_score >= 400 and self.sat_score <= 1600)
373373
self.intro_6th_slide()
374374
except :
@@ -794,20 +794,20 @@ def intro_10th_slide_award_entry_validator(self,) :
794794
assert(award_region != "-" and award_level != "-")
795795

796796
if award_region == "Local/School" :
797-
award_region = 1
797+
award_region = 0.75
798798
elif award_region == "State" :
799-
award_region = 2
799+
award_region = 1.5
800800
elif award_region == "Regional" :
801801
award_region = 3
802802
elif award_region == "National" :
803803
award_region = 5
804804
else :
805-
award_region = 7
805+
award_region = 6
806806

807807
if award_level == "Top 3" :
808-
award_level = 5
808+
award_level = 4
809809
elif award_level == "Finalist" :
810-
award_level = 3
810+
award_level = 2
811811
else :
812812
award_level = 1
813813

@@ -856,7 +856,7 @@ def generate_report(self,) :
856856
career_path = self.career_dd.get()
857857
assert (career_path != "-")
858858

859-
self.student_score = self.sat_score/50 + self.gpa*4.5
859+
self.student_score = self.sat_score/75 + self.gpa*8
860860

861861
## Very dumb but it works so :shrug:
862862
tempTotal = 0
@@ -877,55 +877,54 @@ def generate_report(self,) :
877877
print(self.student_score)
878878

879879
self.clearScreen()
880-
if career_path == "STEM" :
880+
if career_path == "STEM" : ## TODO: Change this later into things for tech, chem, and other sciences
881881
tag = "Tech"
882882
elif career_path == "Undecided" or career_path == "Other" :
883883
tag = None
884884
else :
885885
tag = career_path
886886

887887
recommend_unis = []
888-
if self.student_score >= 75 :
888+
if self.student_score >= 65 :
889889
for i in self.T1_UNIS :
890890
if tag in i.tags :
891891
recommend_unis.append(i)
892892
if tag == "" :
893893
for i in range(3) :
894894
recommend_unis.append(random.choice(self.T1_UNIS))
895895

896-
if self.student_score >= 50 and self.student_score <= 90 :
896+
if self.student_score >= 50 and self.student_score <= 80 :
897897
for i in self.T2_UNIS :
898898
if tag in i.tags :
899899
recommend_unis.append(i)
900900
if tag == "" :
901901
for i in range(3) :
902902
recommend_unis.append(random.choice(self.T2_UNIS))
903903

904-
if self.student_score >= 40 and self.student_score <= 80 :
904+
if self.student_score >= 40 and self.student_score <= 70 :
905905
for i in self.T3_UNIS :
906906
if tag in i.tags :
907907
recommend_unis.append(i)
908908
if tag == "" :
909909
for i in range(3) :
910910
recommend_unis.append(random.choice(self.T3_UNIS))
911911

912-
if self.student_score >= 30 and self.student_score <= 55 :
912+
if self.student_score >= 30 and self.student_score <= 50 :
913913
for i in self.T4_UNIS :
914914
if tag in i.tags :
915915
recommend_unis.append(i)
916916
if tag == "" :
917917
for i in range(3) :
918918
recommend_unis.append(random.choice(self.T4_UNIS))
919919

920-
if self.student_score <= 45 :
920+
if self.student_score <= 40 :
921921
for i in self.T5_UNIS :
922922
if tag in i.tags :
923923
recommend_unis.append(i)
924924
if tag == "" :
925925
for i in range(3) :
926926
recommend_unis.append(random.choice(self.T5_UNIS))
927927

928-
929928
for i in recommend_unis :
930929
print(i.name)
931930

systemprompt.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
You are a college consular that gives information to users about colleges that they should apply to. They should apply to schools that are within their capability but should also push them for a better education than most state schools. The colleges should be in the United States as that is the user's location. Please keep responses short and concise. Do not write long responses.
1+
Your name is CounselAI, a college consular that gives information to users about colleges that they should apply to. They should apply to schools that are within their capability but should also push them for a better education than most state schools. The colleges should be in the United States as that is the user's location. Please keep responses short and concise. Do not write long responses.

tier1.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"75_sat" : 1580,
55
"50_sat" : 1550,
66
"25_sat" : 1490,
7-
"tags" : ["Ivy", "Medium", "Law", "Business", "Medical"]
7+
"tags" : ["Ivy", "LaRge", "Law", "Business", "Medical"]
88
},
99
"Princeton University" : {
1010
"acc_rate" : 0.057,
@@ -117,5 +117,26 @@
117117
"50_sat" : 1500,
118118
"25_sat" : 1490,
119119
"tags" : ["Ivy-Adjacent", "Large", "Business"]
120+
},
121+
"Colby College" : {
122+
"acc_rate" : 0.08,
123+
"75_sat" : 1530,
124+
"50_sat" : 1470,
125+
"25_sat" : 1450,
126+
"tags" : ["Ivy-Adjacent", "Small", "Art"]
127+
},
128+
"University of California, Berkeley" : {
129+
"acc_rate" : 0.11,
130+
"75_sat" : 1530,
131+
"50_sat" : 1420,
132+
"25_sat" : 1340,
133+
"tags" : ["Ivy-Adjacent", "UC System", "Large", "Public Ivy", "Business", "Tech", "Law"]
134+
},
135+
"New York University" : {
136+
"acc_rate" : 0.09,
137+
"75_sat" : 1570,
138+
"50_sat" : 1520,
139+
"25_sat" : 1470,
140+
"tags" : ["Ivy-Adjacent", "Large", "Business", "Medical"]
120141
}
121-
}
142+
}

tier2.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
{
22
"University of California, Los Angeles" : {
3-
"acc_rate" : 0.086,
3+
"acc_rate" : 0.09,
44
"75_sat" : 1550,
55
"50_sat" : 1490,
66
"25_sat" : 1460,
7-
"tags" : ["UC System", "Large", "Public Ivy", "Business", "Art", "Music", "Tech", "Medical"]
8-
},
9-
"University of California, Berkeley" : {
10-
"acc_rate" : 0.116,
11-
"75_sat" : 1530,
12-
"50_sat" : 1420,
13-
"25_sat" : 1340,
14-
"tags" : ["UC System", "Large", "Public Ivy", "Business", "Tech"]
7+
"tags" : ["UC System", "Large", "Public Ivy", "Business", "Art", "Music", "Tech", "Medical", "Sports", "Law"]
158
},
169
"Georgetown University" : {
1710
"acc_rate" : 0.12,
@@ -25,14 +18,7 @@
2518
"75_sat" : 1520,
2619
"50_sat" : 1440,
2720
"25_sat" : 1330,
28-
"tags" : ["Medium", "Sports"]
29-
},
30-
"New York University" : {
31-
"acc_rate" : 0.125,
32-
"75_sat" : 1570,
33-
"50_sat" : 1520,
34-
"25_sat" : 1470,
35-
"tags" : ["Large", "Business"]
21+
"tags" : ["Medium", "Sports", "STEM"]
3622
},
3723
"Carnegie Mellon University" : {
3824
"acc_rate": 0.11,
@@ -130,7 +116,7 @@
130116
"75_sat" : 1560,
131117
"50_sat" : 1520,
132118
"25_sat" : 1470,
133-
"tags" : ["Medium"]
119+
"tags" : ["Medium", "Art"]
134120
},
135121
"California Instute of the Arts" : {
136122
"acc_rate" : 0.25,

tier3.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"tags" : ["Medium"]
6464
},
6565
"University of Wisconsin, Madison" : {
66-
"acc_rate" : 0.49,
66+
"acc_rate" : 0.43,
6767
"75_sat" : 1500,
6868
"50_sat" : 1400,
6969
"25_sat" : 1370,
@@ -82,5 +82,26 @@
8282
"50_sat" : 1380,
8383
"25_sat" : 1370,
8484
"tags" : ["Large"]
85+
},
86+
"Southwestern University" : {
87+
"acc_rate" : 0.39,
88+
"75_sat" : 1320,
89+
"50_sat" : 1240,
90+
"25_sat" : 1180,
91+
"tags" : ["Small", "Art"]
92+
},
93+
"University of Pittsburgh" : {
94+
"acc_rate" : 0.49,
95+
"75_sat" : 1450,
96+
"50_sat" : 1360,
97+
"25_sat" : 1270,
98+
"tags" : ["Large", "Medical", "Engineering"]
99+
},
100+
"Landmark College" : {
101+
"acc_rate" : 0.45,
102+
"75_sat" : 1210,
103+
"50_sat" : 1070,
104+
"25_sat" : 930,
105+
"tags" : ["Small"]
85106
}
86107
}

tier4.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,19 @@
6161
"50_sat" : 1340,
6262
"25_sat" : 1270,
6363
"tags" : ["Large", "Medical", "Sports"]
64+
},
65+
"University of Massachusetts, Amherst" : {
66+
"acc_rate" : 0.58,
67+
"75_sat" : 1460,
68+
"50_sat" : 1360,
69+
"25_sat" : 1310,
70+
"tags" : ["Large"]
71+
},
72+
"Southeastern University" : {
73+
"acc_rate" : 0.74,
74+
"75_sat" : 1210,
75+
"50_sat" : 1100,
76+
"25_sat" : 1010,
77+
"tags" : ["Medium", "Christian"]
6478
}
6579
}

tier5.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"75_sat" : 1320,
55
"50_sat" : 1210,
66
"25_sat" : 1100,
7-
"tags" : ["Large"]
7+
"tags" : ["Large", "Sports"]
88
},
99
"Oregon State University" : {
1010
"acc_rate" : 0.825,
@@ -47,5 +47,12 @@
4747
"50_sat" : 1230,
4848
"25_sat" : 1140,
4949
"tags" : ["Large", "Sports"]
50+
},
51+
"University of Colorado Boulder" : {
52+
"acc_rate" : 0.81,
53+
"75_sat" : 1380,
54+
"50_sat" : 1250,
55+
"25_sat" : 1160,
56+
"tags" : ["Large", "Engineering"]
5057
}
5158
}

todo.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Give some suggestions on improving academic performance
2+
- General GPA
3+
- Give the some prep talk about the importance of certain things.
4+
- Major preperation
5+
- SAT recommendations
6+
- Recommendation for club engagement, such as leadership position, different skills, and talents
7+
- Have some recommendations for the user to improve upon themselves

0 commit comments

Comments
 (0)