00001 //Filename : OPEERSCH.H 00002 //Description: Class PeerSchool Declaration 00003 //Owner: Fred 00004 // An extended version of SchoolEx, with variables in the "Peer_Insts" spreadsheet. 00005 // 0601: variables of peer school to be reported have not decided yet. 00006 00007 #ifndef __OPEERSCH_H 00008 #define __OPEERSCH_H 00009 00010 #include <OSTUDENT.H> // MAX_STUDENT_LEVEL 00011 #include <OSCHLEX.H> 00012 00013 #include <OENROLL.H> // INSTITU_SEGMENT_COUNT, AppYield 00014 #include <OFACURES.H> // MAX_RANK_AGE_GROUP 00015 00016 //---------- Define class PeerSchool ---------// 00017 00019 class PeerSchool : public SchoolEx { 00020 public: 00021 //--- fields defined in School are commented, uncomment these all if it's not derived from School ---// 00022 //--- fields not found in School or master dbase are uncommented ---// 00023 00024 /* 00025 float applications_ratio; 00026 char yield_rate; 00027 char ncaa_basketball_division[8]; // the data of this column in Peer_Insts have problems 00028 short in_state_tuition; // most of in_state_tuition = out_state_tuition in Master dbase 00029 short room_and_board_charges; 00030 00031 // Enroll ft,pt_ug,etc (Enroll SL1-5) 00032 short full_time_undergrad; 00033 short part_time_undergrad; 00034 short enrollment_masters; 00035 short enrollment_doctoral; 00036 short non_degree_seeking; 00037 00038 char student_get_bacc_in_5_year_percent; 00039 char percent_ug_students_on_aid; 00040 */ 00041 00042 //TO: acorrding to email "re:q8: some easy questions", the following fields are temporiarily 00043 // and will be defined more clearerly later 00044 short average_aid_per_student; 00045 00046 float student_faculty_ratio; 00047 char long_term_adjunct_per_regular_facult_ratio; 00048 char short_term_adjunct_per_regular_facult_ratio; 00049 char tenure_ratio; 00050 // short sponsored_research_per_reg_faculty; // = 1000 * sPtr->sponsored_research_per_reg_faculty; 00051 00052 // char net_tuition_revenue_as_percent_of_e_and_g_expense; // the data of this column in Peer_Insts don't match master dbase 00053 // float endowment_per_student; 00054 char liabilities_as_percent_of_assets; 00055 00056 float game_score; 00057 00058 public: 00059 void init(int recno); // calculate vars in PeerSchool based on vars in School 00060 00061 //-------------------------------------------// 00062 //----- data and methods for enrollment -----// 00063 //-------------------------------------------// 00064 00065 public: 00066 float pref_vars_array[PREFERECNE_COUNT2]; 00067 float pref_vars_array_last[PREFERECNE_COUNT2]; 00068 00069 static float pref_vars_average_array[PREFERECNE_COUNT2]; 00070 static float pref_vars_average_array_last[PREFERECNE_COUNT2]; 00071 00072 public: 00073 void calc_student_pref_vars_array(); 00074 void calc_student_pref_vars_array_peer(); 00075 static void calc_student_pref_vars_average_array(); 00076 00077 //-------------------------------------------// 00078 //----- data and methods for faculty salary -----// 00079 //-------------------------------------------// 00080 // not $000 00081 static int average_faculty_salary[MAX_RANK_AGE_GROUP]; 00082 00083 public: 00084 static void calc_average_faculty_salary(); 00085 }; 00086 00087 //--------------------------------------// 00088 #endif