Design a software system University of Narowal campus for 2020 from which they calculate the
monthly
Fee structure of students of different departments.
Write a class Fee having the following attributes and behavior
No.of Students
Fee_per_Student
Float fee
Pure virtual fun ctions:
Monthly_fee()
display()
Derived the following classes from the base class Fee:
CS
Chemistry
BBA
Perform the functionality:-
Calculate the monthly fee for every department.
Show the results on the console using Display () function.
Write destructor when you realize that this is the end of program.
Use virtual destructor concept in the above hierarchy.
Note:
Use virtual Member functions for derived classes.
Use appropriate values for per number of students in departments.
User appropriate data types.
Comments
Leave a comment