Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


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

Views: 5807

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


Looking For Something? Search Below

Latest Activity

Ziddi Programmer commented on + M.Tariq Malik's page Chit Chat Wall
4 hours ago
Ziddi Programmer replied to Mr Siren Head's discussion Ning Chats
5 hours ago
Ziddi Programmer liked Mr Siren Head's discussion Ning Chats
5 hours ago
Mr Siren Head replied to + !♛EMAN FATIMA!'s discussion Course Selection
5 hours ago
mumtaz Muddasir Yasin is now a member of Virtual University of Pakistan
6 hours ago
Saeed liked Mehreen Tasneem's profile
Mehak commented on + M.Tariq Malik's page VULMS Login Here
Mr Siren Head replied to Mr Siren Head's discussion Ning Chats

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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