CStudent::CStudent()
{
Student_name[50]={};
Student_id=0;
Student_email_username[10]={};
Student_major[10]={};
Student_grades[5]=0;
Student_score=0;
Student_email_password[10]={};
}
char CStudent:: *get_Student_name()
{
return Student_name;
}
CStudent::~CStudent(){delete s[];}
int CStudent:: get_Student_id()
{
return Student_id;
}
char CStudent:: *get_Student_email_username()
{
return Student_email_username;
}
char CStudent:: *get_Student_major()
{
return Student_major;
}
float CStudent:: *get_Student_grades()
{
return Student_grades;
}
float CStudent:: get_Student_score()
{
return Student_score;
}
char CStudent:: *get_Student_email_password()
{
return Student_email_password;
}
void CStudent:: set_Student_name(char *name)
{
Student_name=name;
}
void CStudent:: set_Student_id(int id)
{
Student_id=id;
}
void CStudent:: set_Student_email_username(char *username)
{
Student_email_username=username;
}
void CStudent:: set_Student_major(char *major)
{
Student_major=major;
}
void CStudent:: set_Student_grades(float *grades)
{
Student_grades=grades;
}
void CStudent:: set_Student_score(float score)
{
Student_score=score;
}
void CStudent:: set_Student_email_password(char *password)
{
Student_email_password=password;
}
void CStudent:: getStudentInfo(){
CStudent (char Student_name[50], int Student_id, char Student_email_username[10], char Student_major[10],
float Student_grades[5], float Student_score, char Student_email_password[10])
{
cout<"the student's="">"the><><>
cout<"the student's="">"the><><>
cout<"the student's="" email="">"the><><>
cout<"the student's="">"the><><>
cout<"the student's="">"the><><>
cout<"the student's="">"the><><>
cout<"the student's="" email="">"the><><>
}
void calculateGPA(char Student_name[50], int Student_id, char Student_email_username[10], char Student_major[10],
float Student_grades[5], float Student_score, char Student_email_password[10])
{
int sum;
cout<"enter the="" no="" of="">"enter>
cin>>n;
for(int j=0;j<>
{
for(int i=0;i<>
{
sum=sum+grades[i];
}
student_score=sum/100;
}
}
void registerStudent()
{
char Student_name[50];
cout<"please enter="" student's="">"please>
getline(Student_name, 50);
int Student_id;
cout<"please enter="" student's="">"please>
cin>>Student_id;
char Student_email_username[10];
// prompt for the student's Email
cout<"please enter="" student's="" email="">"please>
getline(Student_email_username, 10);
char Student_major[10];
cout<"please enter="" student's="">"please>
getline(Student_major, 10);
float Student_grades[5];
for (int i=1; i<=5;>=5;>
{
cout<"please enter="" student's="" grades="" in="" subject="">"please>cin>>Student_grades[i];
}
float Student_score;
cout<"please enter="" student's="">"please>
cin>>Student_score;
char Student_email_password[10];
cout<"please enter="" student's="" email="">"please>
getline(Student_email_password, 10);
}