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: 9491

Replies to This Discussion

Haan ye to he ap bilkul thek keh rahe he :(

system pause 

return exit success 

wala nae horaha he 

 error arahe he plz check expected ; wale kia karo

ok allxx good night  :)

Alrite thnxs Allah Hafiz

awhhh  Fatima Mughal means is mai r errors bhe hain .. but mary to nhi thy

ye lo friends full solution hazir hai! just compile it one time and run it through th .exe file mean program file



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

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