I got stuck in this program. I need to be able to access the program after the password is correct. Then I have to put in several student's name, student's id and their grades. I have to calculate their average grade earned. (Each students have few differents grades.)<br><br>#include <iostream.h ><br>#include <iomanip.h ><br>#include <string.h ><br>//#include <ctype><br>#include <ctype.h><br>#include <stdlib.h><br>//using namespace std;<br><br>class Password // class declaration<br>{<br>public:<br>Password() { bRetVal = 0;} <br>Password(char* szPassPhase){<br>length = strlen(szPassPhase);<br>szPassword = new char[length+1];<br>strcpy(szPassword , szPassPhase );<br>}<br>int check(void);<br>void setPassword(char*);<br>private:<br>int HasUpperCase(void); //check for password<br>int HasLowercase(void);<br>int HasDigit(void);<br>char* szPassword;<br>int length;<br>int bRetVal;<br>};<br><br>//implementation<br><br>void Password::setPassword(char* string) {<br>strcpy(szPassword,string);<br>cout << szPassword << endl;<br>}<br><br>int Password :: check(){<br><br>while(bRetVal != 0){<br>if( (HasLowercase()) &&<br>(HasUpperCase()) &&<br>(HasDigit()) &&<br>(length >= 6))<br><br>cout<<"Your password is correct. Please process "<<endl;<br>break;<br>}<br>if(!bRetVal) {<br>cout<< "Your password is incorrect. exit and try again. "<<endl<br><< "Your password should be at least six characters long, "<<endl<br><< "and the password should contain at least one uppercase and at least one lower case letter. "<<endl<br><< "An example of the password is B12c34 "<<endl;<br>exit(0);<br>}<br> return bRetVal;<br><br>}<br><br>int Password::HasLowercase(){<br> bRetVal =0;<br> for(int x=0;x < length; x++) <br>if(islower((int)szPassword[x])) //return a non-zero value if true<br>{<br>bRetVal = 1;<br>break;<br>}<br> return bRetVal;<br>}<br><br>int Password::HasUpperCase() {<br>bRetVal = 0;<br>for(int x=0; x<length;x++)//returns a no-zero<br>if(isupper((int)szPassword[x])){<br>bRetVal = 1;<br>break;<br>}<br>return bRetVal;<br>}<br><br>int Password::HasDigit() {<br>bRetVal =0;<br>for (int x=0;x<=length;x++) <br>if(isdigit((int)szPassword[x])) {<br>bRetVal = 1;<br>break;<br>}<br>return bRetVal;<br>}<br><br>struct Student<br>{<br> char name[20];<br> int idnum[10];<br> int testGrade[];<br>}<br>void populate(Student *);<br>void possesInfo(Student *);<br>void display (Student *);<br><br><br><br><br>int main() {<br>char* string =" ";<br>Password a = Password(string) ;<br>cout<<"Type in your password: ";<br>cin.getline(string, 10);<br>cout<<"the password is: " <<string<< endl;<br>a.check();<br>a.setPassword(string);<br>return 0;<br>}<br><br>void populate(Student *record)<br>{<br> cout<< "\nenter student information: ";<br> cout<< "\nStudent's name ";<br> cin.getline(record->name, 10);<br> cout<< "\nEnter the student's id unmber: ";<br> cin>>record->idnum[10];<br> cout<< "\nEnter The test grade ";<br> cin>>record->testGrade[];<br><br> return;<br>}<br><br>void prossesInfo(Student *record)<br>{<br>int count;<br> float total, num, average;<br>cout << "Enter the name of the student: "<br>cin.getline((record->name, 10);<br><br>for ( count = 0; count < record->testGrade; count++)<br>{<br>count <<"Enter a grade of this student: ";<br><br><br><br><br>can you help?<br>