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.

Instructions

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

Objective

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 CS304@vu.edu.pk

GOOD LUCK

 

 

 

 

 

 

 

 

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

would you like to tell me that how you declare the code in main ?

cout the main Header

declare the Feestruc objects

take input from user

do the addition of objects

cout the table header

use dispfe(); function to display fee one by one

cout =====================

and dispfee(); for total function

aoa?

 

 bro plz help krein how to make this assignment ?

Chhaa gae ho Mobi bhai....

Bus bhai ki Dua chahiye.

Code for + operator overloading

lo g kr lo compleat 

Mubashir Bhai ya DisplayFee Member function ka kia code ho ga  Allah Bhala kary in vu walo ka ya nai jeeny dain gay chain degree mukamla hny tak

Hadd hogyi hai yaar.... Assignment... paper dy k soye subh assignment....

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.

RSS

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

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