Write a C++ Program for Educational Institution database

#include
#include

class staff
{
protected:
int code;
char name[20];
public:
void getstaff(void)
{
cout<<"\n\nEnter code :-"; cin>>code;
cout<<"Enter name :-"; cin>>name;
}
void dispstaff(void)
{
cout<<"\nNAME :-"<<<"\nCODE :-"<<<"Enter Subject :-"; cin>>sub;
cout<<"Enter Publication :-"; cin>>pub;
}
void display(void)
{
dispstaff();
cout<<"\nSUBJECT :-"<<<"\nPUBLICATION:-"<<<"Enter Grade :-"; cin>>grade;
}
void display(void)
{
dispstaff();
cout<<"\nGRADE :-"<<<"Enter speed (wpm):-"; cin>>speed;
}
void disptypist(void)
{
dispstaff();
cout<<"\nSPEED :-"<<<"Enter Daily Wages :-"; cin>>dailywages;
}
void display(void)
{
disptypist();
cout<<"\nDAILY WAGES:-"<<<"\n=====EDUCATION INSTITUTION DATABASE=====\n\n\n"; cout<<"Choose Category of Information\n"; cout<<"1) Teachers\n"; cout<<"2) Officer\n"; cout<<"3) Typist\n"; cout<<"4) Exit\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : while(1)
{
clrscr();
cout<<"\n=====TEACHERS INFORMATION=====\n\n"; cout<<"\nChoose your choice\n"; cout<<"1) Create\n"; cout<<"2) Display\n"; cout<<"3) Jump to Main Menu\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><<<"\n\nAre you Interested in entering data\n"; cout<<"Enter y or n:-"; cin>>test;
if(test=='y' || test=='Y')
continue;
else
goto out1;
}
out1:
break;
case 2 : for(i=0;i<<<<"\nEnter choice is invalid\ntry again\n\n"; } } case 2 : while(1) { clrscr(); cout<<"\n=====OFFICERS INFORMATION=====\n\n"; cout<<"\nChoose your choice\n"; cout<<"1) Create\n"; cout<<"2) Display\n"; cout<<"3) Jump to Main Menu\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><<<"\n\nAre you Interested in entering data\n"; cout<<"Enter y or n:-"; cin>>test;
if(test=='y' || test=='Y')
continue;
else
goto out2;
}
out2:
break;
case 2 : for(i=0;i<<<<"\nInvalid choice\ntry again\n\n"; } } case 3 : while(1) { clrscr(); cout<<"\n=====TYPIST INFORMATION=====\n\n"; cout<<"\nChoose your choice\n"; cout<<"1) Create\n"; cout<<"2) Display\n"; cout<<"3) Jump to Main Menu\n"; cout<<"Enter your choice:-"; cin>>choice;
switch(choice)
{
case 1 : for(count=0,i=0;i<10;i++) cout=""><<<"\n\nAre you Interested in entering data\n"; cout<<"Enter y or n:-"; cin>>test;
if(test=='y' || test=='Y')
continue;
else
goto out3;
}
out3:
break;
case 2 : for(i=0;i
{
cout<
o1c[i].display();
cout<
}
getch();
break;
case 3 : goto start;
default: cout<<"\nInvalid choice\ntry again\n\n";
}
}
case 4 : goto end;
}
}
end:
}