-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAdvisor.cpp
566 lines (528 loc) · 20.3 KB
/
Advisor.cpp
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
#include "graduateStudent.h"
#include "Advisor.h"
#include <random>
#include <string>
#include <time.h>
#include "Drawing.h"
char *MyFgets(char str[], int limit, FILE *fp)
{
if (nullptr != fgets(str, 255, fp))
{
int l = 0;
for (l = 0; 0 != str[l]; ++l)
{
}
for (l = l - 1; 0 <= l; --l)
{
if ('\n' == str[l] || '\r' == str[l])
{
str[l] = 0;
}
else
{
break;
}
}
return str;
}
else
{
return nullptr;
}
}
Advisor::Advisor()
{
//Experience = 70;
//Prestige = 90;
//Knowledge = 80;
//Mentoring = 90;
//Semester = 0;
printf("You have 300 points to distribute to advisor`s personalities, write down the distribution in a range of 0-100\n Experience\n Prestige\n Knowledge\n Mentoring\n");
printf("If you try to exceed 300, the rest will be assigned as 0\n");
printf("After Entering number, Press ENTER\n");
char Exp[5];
MyFgets(Exp, 4, stdin);
Experience = atof(Exp);
if (Experience > 100) {
Experience = 100;
}
printf("%d LEFT to Distribute\n", 300 - (int)Experience);
char Pres[5];
MyFgets(Pres, 4, stdin);
Prestige = atof(Pres);
if (Prestige > 100) {
Prestige = 100;
}
printf("%d LEFT to Distribute\n", 300 - (int)(Prestige+Experience));
char Know[5];
MyFgets(Know, 4, stdin);
Knowledge = atof(Know);
if (Knowledge > 100) {
Knowledge = 100;
}
printf("%d LEFT to Distribute\n",300- (int)(Knowledge+Prestige+Experience));
char Ment[5];
MyFgets(Ment, 4, stdin);
Mentoring = 300 - (Knowledge + Prestige + Experience);
printf("Experience:%d\n", (int)Experience);
printf("Prestige:%d\n", (int)Prestige);
printf("Knowledge:%d\n", (int)Knowledge);
printf("Mentoring:%d\n", (int)Mentoring);
}
Advisor::~Advisor()
{
}
float Advisor::GetExperience() {
return Experience;
}
float Advisor::GetPrestige() {
return Prestige;
}
float Advisor::GetKnowledge() {
return Knowledge;
}
float Advisor::GetMentoring() {
return Mentoring;
}
void Advisor::AddPrestige(float p) {
Prestige += p;
}
void Advisor::AddExperience(float p) {
Experience += p;
}
void Advisor::AddKnowledge(float p) {
Knowledge += p;
}
void Advisor::AddMentoring(float p) {
Mentoring += p;
}
void Advisor::WriteGrant() {
//Draw.CheckMouseWriteGrand() is in the drawing function and checks if the user is clicking WriteGrand button.
double inherent_probability = ((Prestige*0.5)+(Knowledge*0.2) +(Experience*0.1))/100.0;// This math needs tuning to fall in (1,2)
double accept_probability = (1.0*(rand()% 14))/100.0; //We will add the weight of the level of the grand to it so that this also falls to 1 to 2, and the higher the level, the harder it is to get
printf("Initial Money:%.2f\n", Money);
char LevelInput[10];
int levelmoneyA = 30000, levelmoneyB = 80000, levelmoneyC = 300000, levelmoneyD = 500000;
printf("What grant do you want to apply for this year?\nLevel A: Neighborhood Support Foundation\t Grant Amount: %d\nLevel B: Small Company Research Foundation\t Grant Amount: %d\nLevel C: The United States Department of Energy\t Grant Amount: %d\nLevel D: National Science Foudation\t Grant Amount: %d\n", levelmoneyA, levelmoneyB, levelmoneyC, levelmoneyD);
MyFgets(LevelInput, 9, stdin);
while (LevelInput[0] != 'A' && LevelInput[0] != 'a' && LevelInput[0] != 'B' && LevelInput[0] != 'b' && LevelInput[0] != 'C' && LevelInput[0] != 'c' && LevelInput[0] != 'D' && LevelInput[0] != 'd') {
printf("Hey man, what are you thinking. There is no free lunch. Go choose another one!\n");
MyFgets(LevelInput, 9, stdin);
}
if (LevelInput[0] == 'A' || LevelInput[0] == 'a') {
accept_probability += 0.35;
if (inherent_probability > accept_probability) {
Money += levelmoneyA;
printf("Congrats! The proposal is accepted!\n");
}
else printf("Ooops! The proposal is NOT accepted. :(\n");
}
if (LevelInput[0] == 'B' || LevelInput[0] == 'b') {
accept_probability += 0.60;
if (inherent_probability > accept_probability) {
Money += levelmoneyB;
printf("Congrats! The proposal is accepted!\n");
}
else printf("Ooops! The proposal is NOT accepted. :(\n");
}
if (LevelInput[0] == 'C' || LevelInput[0] == 'c') {
accept_probability += 0.76;
if (inherent_probability > accept_probability) {
Money += levelmoneyC;
printf("Congrats! The proposal is accepted!\n");
}
else printf("Ooops! The proposal is NOT accepted. :(\n");
}
if (LevelInput[0] == 'D' || LevelInput[0] == 'd') {
accept_probability += 0.95;
if (inherent_probability > accept_probability) {
Money += levelmoneyD;
printf("Congrats! The proposal is accepted!\n");
}
else printf("Ooops! The proposal is NOT accepted. :(\n");
}
printf("Updated Money:%.1f\n", Money);
}
void Advisor::Recruit(GradStudent student[], int &StudentCounter, Person people[], int &flag) {
char Selection[3];
int j;
char A = 'A';
bool canhire = true;
if (StudentCounter == 6) {
printf("You have reached maximum number of students,you cannot hire more\n");
canhire = false;
}
if (canhire==true) {
GradStudent Hire[3];
j = 3;
for (int i = 0; i < j; i++) {
Hire[i] = GradStudent(Knowledge, Prestige, Mentoring);
printf("%c: ", A);
Hire[i].PrintName();
printf(" ");
Hire[i].PrintPersonality(); //Graduate Student class is responsible for printing attributes. //ask ady when he is done, so we can implement that class!!
A++;
}
printf("\n");
MyFgets(Selection, 2, stdin);
if (Selection[0] == 'A' || Selection[0] == 'B' || Selection[0] == 'C' || Selection[0] == 'D' || Selection[0] == 'E' || Selection[0] == 'F' || Selection[0] == 'G') {
if (Money > 100000) {
for (int i = 1; i < 7; i += 1) {
if (people[i].state_person == 0) {
people[i].state_person = 1;
student[i - 1] = Hire[Selection[0] - 65];
break;
}
}
printf("Congrats, you selected: ");
Hire[Selection[0] - 65].PrintName();
printf("\nStudent costs you 100,000 dollar\n");
Money -= 100000;
StudentCounter++;
//flag = 1;
}
else if (Money < 100000) {
printf("You do not have enough money to recruit a new student, you can apply for a grant on Fall Semester\n");
}
}
}
}
void Advisor::UpgradeLab(GradStudent student[], Upgrade upgrade[], Person people[], int StudentCounter) {
char LevelInput[100];
int levelmoney[6] = { 10000,20000,50000,100000,200000,500000};
printf("How do you like to upgrade your lab?\nLevel A: Just buy a coffee machine\t Investment Amount: %d\nLevel B: A Printer\t Investment Amount: %d\nLevel C: Chemicals\t Investment Amount: %d\nLevel D: CNC machine\t Investment Amount: %d\nLevel E: Computer Servers\t Investment Amount: %d\nLevel F: A clone machine\t Investment Amount: %d\n", levelmoney[0], levelmoney[1], levelmoney[2], levelmoney[3], levelmoney[4], levelmoney[5]);
MyFgets(LevelInput, 99, stdin);
while (LevelInput[0] != 'A' && LevelInput[0] != 'a' && LevelInput[0] != 'B'&&LevelInput[0] != 'b' && LevelInput[0] != 'C' && LevelInput[0] != 'c' && LevelInput[0] != 'D' && LevelInput[0] != 'd' && LevelInput[0] != 'E' && LevelInput[0] != 'e'&&LevelInput[0] != 'F' && LevelInput[0] != 'f') {
printf("!!!Uhuh, bro, That I cannot help you. Go choose another one!>");
MyFgets(LevelInput, 99, stdin);
}
if (Money > levelmoney[65 - LevelInput[0]]) {
if (LevelInput[0] == 'F' || LevelInput[0] == 'f') {
upgrade[0].state = 1;//This is for Drawing Class!
//Increase GradStudent happiness and research a little. From A to F, the increment increase.
Money -= levelmoney[5];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(120.0);
student[i].ModifyResearchdT(12.0);
}
}
}
if (LevelInput[0] == 'E' || LevelInput[0] == 'e') {
upgrade[5].state = 1;//This is for Drawing Class!
Money -= levelmoney[4];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(95.0);
student[i].ModifyResearchdT(10.0);
}
}
}
if (LevelInput[0] == 'D' || LevelInput[0] == 'd') {
upgrade[2].state = 1;//This is for Drawing Class!
Money -= levelmoney[3];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(45.0);
student[i].ModifyResearchdT(7.0);
}
}
}
if (LevelInput[0] == 'C' || LevelInput[0] == 'c') {
upgrade[4].state = 1;//This is for Drawing Class!
Money -= levelmoney[2];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(35.0);
student[i].ModifyResearchdT(4.0);
}
}
}
if (LevelInput[0] == 'B' || LevelInput[0] == 'b') {
upgrade[1].state = 1;//This is for Drawing Class!
Money -= levelmoney[1];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(25.0);
student[i].ModifyResearchdT(5.0);
}
}
}
if (LevelInput[0] == 'A' || LevelInput[0] == 'a') {
upgrade[3].state = 1;//This is for Drawing Class!
Money -= levelmoney[0];
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
if (people[i + 1].state_person == 1) {
student[i].ModifyHappinessValue(15.0);
student[i].ModifyResearchdT(6.0);
}
}
}
}
else {
printf("Sorry!! You and your students need to work harder to buy it\n");
}
}
void Advisor::Party(GradStudent student[], int StudentCounter) {
//Increase GradStudent happiness for some amount.
if (Money > 5000) {
printf("You are cracking jokes to break the ice, and your students are having a good time.\n");
printf("Their Happiness is boosted\n");
for (int i = 0; i < StudentCounter; i++) { //Because people[0] is advisor
student[i].ModifyHappinessValue(20);
student[i].ModifyResearchdT(2.0);
}
Money -= 5000;
}
else if (Money < 5000) {
printf("you are so poor that you can't even throw a party, Apply fo a grant on Fall Semester\n");
}
}
void Advisor::Conference(GradStudent student[],Person people[],int StudentCounter)
{
double PresThresh = 100;//Define a prestige threshold to determine what kind of conferences can one attend.
int MoneyLevel[6];
int StuTakenToConference[6];
int LevelState[6];//To determine if a user can choose this conference
for (int i = 0; i < 6; i++) { MoneyLevel[i] = 5000 * (i + 1); LevelState[i] = 0; }
char LevelInput[3];
int k = 0;//This is to record the conference level
int NumofStu = 0;//Number of students to be taken to conference
char ConferenceLevel[6][255];
strcpy(ConferenceLevel[0], "A: Neighborhood conference on good-looking food delivery guy.\n");
strcpy(ConferenceLevel[1], "B: City conference of the mayer's dog.\n");
strcpy(ConferenceLevel[2], "C: State conference of the traffic light change.\n");
strcpy(ConferenceLevel[3], "D: National conference of heat and mass that don't wanna move.\n");
strcpy(ConferenceLevel[4], "E: International conference of \"Chill, man, just sit down and chat, no harm done\".\n");
strcpy(ConferenceLevel[5], "F: Interstellar conference of where has my spaceship gone! I just parked it here.\n");
if (Prestige > 0.5*PresThresh) {
LevelState[0] = 1;
}
if (Prestige > 0.7*PresThresh) {
LevelState[1] = 1;
}
if (Prestige > 0.88 * PresThresh) {
LevelState[2] = 1;
}
if (Prestige > 0.98 * PresThresh) {
LevelState[3] = 1;
}
if (Prestige > 1.1 * PresThresh) {
LevelState[4] = 1;
}
if (Prestige > 1.2 * PresThresh) {
LevelState[5] = 1;
}
for (int i = 0; i < 6; i++) {
if (LevelState[i] == 1) {
printf("%s\t \t\t\t \t\t which will cost you %d per student\n", ConferenceLevel[i], MoneyLevel[i]);
}
}
printf("What kind of conference do you want to go to?\n");
MyFgets(LevelInput, 2, stdin);
//From here on, I am checking the user input
//!!!Causion: would this check work if the user can only choose from A to C but chooses D?
char CheckInput[12] = { 'A','a','B','b','C','c','D','d','E','e','F','f' };
int checkwrong, available = 0;
for (int i = 0; i < 6; i++) {
if (LevelState[i] == 1)
available++;
}
available = available * 2;
checkwrong = 0;
for (int j = 0; j < available; j++) {
if (CheckInput[j] != LevelInput[0]) {
checkwrong++;
}
}
while (checkwrong == available) {
printf("Come on, bro! Do you know how hard it is to put this game together? Don't fool me and type only within the range shown!\n");
MyFgets(LevelInput, 2, stdin);
checkwrong = 0;
for (int j = 0; j < available; j++) {
if (CheckInput[j] != LevelInput[0]) {
checkwrong++;
}
}
if (checkwrong < available) break;
}
//Check input End
//--Mark User Choice Begins
for (int i = 0; i < 12; i++) {
if (CheckInput[i] == LevelInput[0])k = i;//This is to mark the user's choice.
}
k = (k - (k % 2)) / 2;//This is the index of the user's choice.
//--Mark User Choice End
printf("You chose the NO:%d. Conference\n", k+1);
//--Take NumofStu to conference
NumofStu = 0;
//We alreay have StudentCounter for this int numAvailable = 0; //Records the number of students that are already there (recruited)
for (int i = 1; i < 7; i += 1) {
if (people[i].state_person == 1) {
student[i - 1].PrintName();
printf(" ");
//Print personality so that the user knows who to choose from
student[i - 1].PrintPersonality();
//numAvailable++;
}
}
printf("How many students do you want to take with you?\n");
scanf("%d", &NumofStu);
while (NumofStu<1 || NumofStu>StudentCounter) {
printf("Requirement denied. Sorry sir, but I cannot take someone that is not there to conference.\n");
printf("So, how many students do you want to take with you?\n");
scanf("%d", &NumofStu);
}
Money -= NumofStu*MoneyLevel[k];
//---From here we are taking selected students to conference
printf("Money: %.2f\n", Money);
for (int i = 0; i < 6; i++) {
StuTakenToConference[i] = 0;
printf("%d,\t", i);
}
int ithTaken;
for (int i = 0; i < NumofStu; i++) {
printf("Who do you want to take with?\n");
printf(">");
scanf("%d", &ithTaken);
while (0 > ithTaken || StuTakenToConference[ithTaken] == 1) {
// This is to check in case the user wants to take a student out of range
// or wants to take someone that is already taken.
if (people[ithTaken+1].state_person == 0) {
printf("Uh,I don't think he is there. Who do you want to take with? >");
scanf("%d", &ithTaken);
}
if (StuTakenToConference[ithTaken] == 1) {
printf("Uh,You have taken him already. Who do you want to take with? >");
scanf("%d", &ithTaken);
}
}
StuTakenToConference[ithTaken] = 1;
}
//--Take NumofStu to conference End
//Make Students that are taken to conference happier and more research-good--Begin
int base = 10;// this is for balancing,
//the minimum happiness and research change in accordance with the conference level
printf("This is a successful conference!\n");
for (int j = 0; j < 6; j++) {
if (StuTakenToConference[j] == 1) {
for (int i = 1; i < 7; i += 1) {
if (people[i].state_person == 1) {
double ResearchChangevalue = 0.5*base*(k + 4) + 10;
double HappinessChangevalue = 0.3*base*(k + 4) + 20;
student[i-1].ModifyHappinessValue(ResearchChangevalue);
student[i-1].ModifyResearchValue(HappinessChangevalue);
printf("Your student ");
student[i-1].PrintName();
printf(" has gained %.1f points happiness and %.1f points research!\n", HappinessChangevalue, ResearchChangevalue);
//!!!Balance issue: do I change the happiness and research level or happiness and research dT
}
}
}
}
//Make Students that are taken to conference happier and research-good--End
}
void Advisor::SetResearchFocus(GradStudent student[], int inter) {
char a[5];
int focus;
// !!! student[inter].CheckIn(); !!! INCLUDE
/*scanf("Whose focus do you want to set? %d\n", &ChosenStu);*/
/*while (ChosenStu<0 || ChosenStu > StudentCounter) {
scanf("No, please choose a real student in your group! %d\n", &ChosenStu);
}*/
printf("Which focus do you want to set this student's focus on?\n");
printf("0: Experiment\n");
printf("1: Theory\n");
MyFgets(a, 4, stdin);
focus = atoi(a);
printf("%d\n", focus);
student[inter].SetResearchFocus(focus);
}
void Advisor::SendtoCompany(GradStudent student[],int inter) {
// we should decide on Students Gains.
printf("Which company would you like your student to be working in during summer term\n");
printf("A: Your student works in GOOGLE to create AI that might destroy the humanity.\nB: Your student works in UBER for Self-driving cars in Pittsburgh.\nHe can also be an UBER driver for some extra bucks.\nC: Your Student will takea part in a super secret CIA project even you don't know.\n");
printf("D: TESLA needs some fast-charging, lightweight batteries for the cars.\nE: SPACEX is looking for Rocket drivers.\nF: Your student seems to need a vacation. Give him a Mars trip with NASA.\n");
printf("G: FACEBOOK needs more advertisement and news-feed algorithms to alienate people.\nH: Let's save the planet with Wind and Solar Power.\nI: Wants to be a librarian in AMAZON.\n");
printf("J: You are just sick of student's question and want not to see him at least a semester, so anywhere is ok.\nK: Let's do some Fusion Energy.\nL: CERN is looking for geniuses.\n");
char decision[10];
MyFgets(decision, 9, stdin);
printf("Your student ");
student[inter].PrintName();
printf(" has gained %d points happiness but lost %d points Research !\n",80,40);
student[inter].ModifyHappinessValue(80.0);
student[inter].ModifyResearchValue(-40.0);
}
void Advisor::RandomEvents(GradStudent student[], Person people[], int StudentCounter) {
int randEvent;
randEvent = rand() % 8;
int luckystudent = rand() % 6 + 1;
int unluckystudent = rand() % 6 + 1;
switch (randEvent) {
case 0:
printf("It looks that you are really woring hard as a start up professor,\n");
printf("so the department decided to give you a small bonus to start, with 10000 USD!\n");
Money += 10000;
break;
case 1:
printf("Wow, Thanks Giving is approaching! It looks that everyone is happy!\n");
printf("Happiness of every student you have has increased 5%%. \n");
for (int i = 1; i < 7; i++) {
if (people[i].state_person == 1) {
student[i-1].ModifyHappinessValue(5);
}
}
break;
case 2:
printf("An Earthquake took place! One of your machines broke.\n");
printf("You have to spend extra money to repair it.Lose 10000 USD.\n");
Money -= 10000;
break;
case 3:
printf("Your student's dog just bit you, but you are kind enough not to bite your student back.\n");
printf("Your student is very grateful for this,their happiness increase by 5%%, and your prestige also increases by 5.\n");
Prestige += 5;
for (int i = 1; i < 7; i++) {
if (people[i].state_person == 1) {
student[i-1].ModifyHappinessValue(5);
}
}
break;
case 4:
if (people[unluckystudent].state_person == 1) {
printf("Someone from another research group just published your work!!\n");
printf("This is really bad news and your students' research points just fall back 50%%.\n");
student[unluckystudent-1].PrintName();
printf("`s research progress is decreased by 50\n");
student[unluckystudent-1].ModifyResearchValue(-50);
break;
}
case 5:
printf("Suddenly you don't wanna work and sat down and chat with your student.\n");
printf("Studnets think you are a nice advisor! Congrats! Prestige + 7 \n");
Prestige += 7;
break;
case 6:
if (people[luckystudent].state_person == 1) {
printf("Your student just had an epiphany!\n");
student[luckystudent-1].PrintName();
printf(" Congrats, Research point increases 20 points!\n");
student[luckystudent - 1].ModifyResearchValue(20);
break;
}
case 7:
printf("Shoo, an uneventful semester! Finally\n");
printf("Gonna go home and rest!\n");
break;
}
}
void Advisor::Push(GradStudent student[], int inter)
{
float ResearchValueChange = 0.0025*student[inter].personality->getStamina()*Mentoring + 0.003*student[inter].personality->getIntelligence()*Knowledge+ 0.08*student[inter].GetResearchVal();
float HappinessValueChange = 0.025*(100.0 - student[inter].personality->getIntelligence())*(Experience) - Prestige*student[inter].personality->getOptimism()*0.001;
student[inter].ModifyResearchValue(ResearchValueChange);
student[inter].ModifyHappinessValue(-HappinessValueChange);
float ResearchDT = (ResearchValueChange*0.025)*(rand() % 3);
student[inter].ModifyResearchdT(ResearchDT);
student[inter].ModifyHappinessdT(-3.00);
}