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

Getter and Setter is sense main use hoga....
player::set_health( h) { health = h; } player::set_money( m) { money = m; } player::set_score( s) { score = s; } //Getters player::get_health() { health; } player::get_money() { money; } player::get_score() { score; } #endif // PLAYER_H

Naveed Ahmed  thnx bro !........

Zain Nasar is main designation ka portion input aur output main shamil nh hai

 Marha Khan  wo b hojayega 

zain bhai mery compiler pe line no 57 aur 61 ma error arhy hain.plz guide about it i have attached file which shows error

zain nasar thanks .so sweet of you dear .
zain nasar very gud dear but ap ny jo second progarm dea ha us me ek line miss ha designation wali output me ni a rahi so plz usy thek kar lan.......thanks
ayeeza ap lentgh zyada kar do dear phir ni ho ga

Cs201 Assignment no#4 solution file BY Zain


Zian nasar!!! assignment me tu yeh b likha ha k Provide Getter and setter function. wo tu es code me enter ni kia howa ha.... wo kese karna ha aur kaha pe? kindly tell me.... aur getter and setter function ka purpose kia ha wo b bta do net pe search kia ha par samjh ni ai ha....

mujhe ap k is program mai aik prob ho rahi hai is mai agr mai code mai apna name nd id use kar rahi hun tu bhi ap ka hi name show h rha hai mujhe kuch samjh nhi araha plz help mai kese change karo mai name

i will be very thankful to you 

plz help me

apko code myn apna name dalna hoga sis


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

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