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 solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment is other than .cpp file.
  • The submitted assignment does NOT open or file is corrupted.
  • The assignment is copied (from other student or ditto copy from handouts or internet).

Uploading instructions


  • For clarity and simplicity, you are required to Upload/Submit only one .CPP file


The objective of this assignment is:


  • To give you the idea of practical implementation of overloading different operators.


For any query about the assignment, contact at










Marks: 20 

Problem Statement:

Consider the following class from the scenario discussed in assignment no. 1,



Being a part of development team, you are given the task to develop a form for the VU Accounts Department which is used to enter fee structure of different degree programs (Master, BS and Diploma etc).


Your task is to, write a C++ program which implements FeeStructure class and operator overloading with attributes and operations (functions) given in the above class structure.


Solution Guidelines:


  1. Create (Declare) a class with data members and member functions given in the above class.


  1. Overload the stream extraction operator (>>) for the class, so that you could use the statement like, cin>>Master_Fee; where Master_Fee is an object of FeeStructure class.



  1. Overload the plus binary (+) operator for the class, so that you could use the statement like,

Total_Fee = Master_Fee + BS_Fee + Diploma_Fee ; where Total_Fee, Master_Fee, BS_Fee, Diploma_Fee are objects of FeeStructure class.


  1. DisplayFee() member function displays the fee structure of each object (degree program).


  1. In main function create different objects of FeeStructure class, read values for these objects from keyboard.


  1. Also create an object which adds fees of different Degree programs like,

         Total_Fee = Master_Fee + BS_Fee + Diploma_Fee ;


  1. Call the DisplayFee() member function for all objects created in the program.








Sample Output:




Note:  This assignment is Non Graded, which means its mark will not be considered in final grading, however, you are required to solve it and UPLOAD/Submit on LMS.


Lectures Covered:  This assignment covers Lecture #    16-21

Deadline:             Your assignment must be uploaded/submitted at or before. January 08, 2014



Views: 9533

Replies to This Discussion

Inni jldi asignmnt a b gai

Yes  °★•zαɦɾα•★°    bohat zalim hn VU waly  

abi tou exams k bad neend b puri ni ui thi

koi bat nhe hai °★•zαɦɾα•★° extended day mila kar abhi puray 5 days are remaining. araam se neend puri karo.

yeh assign kasy ho ge :(

bhoaaaaaaaaaaaaaaaaaaaat zalaim hn yeh vu waly gandy

thts vry easy....

Code For Overloaded stream extraction operator

You can ask me for any kind of help related to this assignment.

Mubashir Saeed bro ap assignment complete ke chuky hn ?? 

yes I have completed the assignment.

bro. Mobasshir plz share assignment


Looking For Something? Search Below

Latest Activity

+ ! ! ! ! ! ! ! Captain+ replied to иαвєєℓ αнмє∂'s discussion Kya hal hain ning awam?
34 minutes ago
+ ! ! ! ! ! ! ! Captain+ replied to иαвєєℓ αнмє∂'s discussion Kya hal hain ning awam?
35 minutes ago
Batool updated their profile
56 minutes ago
Terry Brown replied to irshad kausar's discussion math
2 hours ago
Profile IconTerry Brown and Fahad Chaudhary joined Virtual University of Pakistan
2 hours ago
+ Dazzling smile updated their profile
4 hours ago
Muhammad Rizwan Ansari liked Karina Lopez's profile
8 hours ago
alvia khan and Shoaib Hasan Khan are now friends
8 hours ago

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

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