We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.


Please read the following instructions carefully before submitting assignment.

It should be clear that your assignment will not get any credit if:


  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied(partial or full) from any source (websites, forums, students, etc)





The objective of this assignment is to provide an on hand experience of:

  • Learn to use object oriented concept
  • Learn to map real world problem in the context of computer programming



  • Create a class for “StaffRegistration”.
  • Provide getter and setter functions for each data member.
  • Use two member functions “InputStaffData()” and “DisplayStaffData()” for getting input and displaying it respectively.
  • Code should properly be indented and well commented.
  • Follow C/C++ rules for code documentation.
  •  Use only Dev-C++ for this assignment. If you are using any other tool then mention it at top of your code file as comments.


Assignment Description


Etradehouse is an online shopping store, which deals with selling of goods across Europe. They have regional offices in different countries (Pakistan, China & UK). The support, purchase and sales staff works in regional office (Pakistan).

They hire new employees in order to run their business smoothly, but currently they have no automated system for hiring of their employees. As a C++ programmer, your task is to write a computer program in C++ which could register the newly hired staff and then display summary of it.



The data about the staff, that the company is interested are as follows:-

  • CNIC ( National Identity Card Number in the form XXXXX-XXXXXXX-X)
  • Name ( Name of employee)
  • Father Name
  • Date of Birth
  • Qualification
  • Designation
  • Salary
  • Joining Date
  • Contact Number
  • Address

Your Task

Your task is to create the program which produces the output as shown in “screenshot”.

Screenshot of the desired  output:

Here display your name & VU ID.




Object oriented approach MUST be used in order to implement the assignment.


You are required to submit your assignment through LMS in zip format containing two files.

  • Your solution C++ program i.e .cpp file
  • An MS Word document containing screenshot of your program output/execution



CS201_ Assignment # 2, Due Date: 04/08/2015

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 5714


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

Please Discuss here about this assignment.Thanks
Our main purpose here discussion not just Solution
We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.


using namespace std;
class StaffRegistration
char cnic[16];
char name[20];
char fname[20];
char dob[11];
char degree[10];
char desig[15];
int sal;
char joinDate[11];
char cell[13];
char address[40];
void InputStaffData()
cout"\nPlease enter National Identity Card Number(CNIC)"endl;
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;
cout"Please enter qualification"endl;
cout"Please enter salary"endl;
cout"Please enter joining date (dd/mm/yyyy)"endl;
cout"Please enter contact number"endl;
cout"Please enter address information"endl;
cout"Record added successfully !!!"endlendl;
void DisplayStaffData()
cout"CNIC: \t\t\t"cnicendl;
cout"Name: \t\t\t"nameendl;
cout"Father Name: \t\t"fnameendl;
cout"DoB: \t\t\t"dob endl;
cout"Qualification: \t\t"degreeendl;
cout"Salary: \t\t"salendl;
cout"Joining Date: \t\t"joinDateendl;
cout"Contact Number: \t"cellendl;
cout"Address: \t\t"addressendl;

StaffRegistration emp;

actually i have completed my assignment ..... i m just facing one problem if i  give space in my name  then the next line do not not stop on My V.u ID   but if i remove space the next cursor stop in front of My V.u Id ..... How can i resolve this problem....... 

Dear Write coding in this way

cout" My VU ID:  MC150201928"endl;

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

guys hm yaha class use kary gy .right bcz...............mara khyal ha k ye sb ki evaluation k lea ha. k kon easy code bnata ha or kon complecte try to find that is just about professionalism .
what you guys think?????
koi to batao yr kahao sab phir last 2 days par a jaty mangny assignment solution.

Ab assignment main kafi sari outputs par error a raha hai

Cs201 Assignment no#4 solution file


Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

zain nasar.gud work dear keep it up zain nasar


© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service