Thursday, August 6, 2015
This is my assignment of BCS201 no.4
// Name Mubashar Hussain
// VU-bc150202347
#include <iostream>
using namespace std;
class StaffRegistration
{
private:
char CNIC[16];
char NAME[20];
char FNAME[20];
char DOB[11];
char DEGREE[10];
char DSIGN[15];
int SAL;
char JOINDATE[11];
char CELL[13];
char ADRESS[40];
public:
void InputStaffData()
{
cout<<"Program developed by : Mubashar Hussain"<<endl;
cout<<"vu id :-bc150202347"<<endl;
cout<<"Please enter National Identity Card Number(CNIC)"<<endl;
cin>>CNIC;
cout<<"Please enter name"<<endl;
cin >> NAME;
cout<<"Please enter father name"<<endl;
cin >> FNAME;
cout<<"Please enter date of birth (dd/mm/yyyy)"<<endl;
cin>>DOB;
cout<<"Please enter qualification"<<endl;
cin>>DEGREE;
cout<<"Please enter salary"<<endl;
cout<<"Please enter your designation"<<endl;
cin>>DSIGN;
cin>>SAL;
cout<<"Please enter joining date (dd/mm/yyyy)"<<endl;
cin>>JOINDATE;
cout<<"Please enter contact number"<<endl;
cin>>CELL;
cout<<"Please enter address information"<<endl;
cin>>ADRESS;
cout<<"Record added successfully !!!"<<endl;
}
void DisplayStaffData()
{
cout<<"CNIC: \t\t\t"<<CNIC<<endl;
cout<<"Name: \t\t\t"<<NAME<<endl;
cout<<"Father Name: \t\t"<<FNAME<<endl;
cout<<"DoB: \t\t\t"<<DOB <<endl;
cout<<"Qualification: \t\t"<<DEGREE<<endl;
cout<<"Salary: \t\t"<<SAL<<endl;
cout<<"Joining Date: \t\t"<<JOINDATE<<endl;
cout<<"Contact Number: \t"<<CELL<<endl;
cout<<"Address: \t\t"<<ADRESS<<endl;
}
};
main()
{
system("cls");
StaffRegistration emp;
emp.InputStaffData();
cout<<"---------------------------------------------------------------------------"<<endl;
cout<<"\t\t\t\ DISPALAY STAFF INFORMATION"<<endl;
cout<<"---------------------------------------------------------------------------"<<endl;
emp.DisplayStaffData();
cout<<"---------------------------------------------------------------------------"<<endl;
}
Subscribe to:
Posts (Atom)