Define the classes according to the class hierarchy in the figure . class Student store the name and roll no. of student . class Marks store the marks in three subjects . class Result store the total marks of a student. Take the input for 5 student . Find the average and display. Include all the constructor.
Define the classes according to the class hierarchy in the figure . class Student store the name and roll no. of student . class Marks store the marks in three subjects . class Sports store marks of sports(grade). class Result store the total marks of a student. Take the input for 5 student . Find the average and display. Include all the constructor.total = m+m2+m3+grade
Define the class hierarachy as given . Find the area of a circle, rectangle, triangle using virtual function. Creation of Base class object should not be allowed.
Define class hierarchy as show in figure.Store the information of the Book, Tape, CD . Display the information using base pointer. you should not able to make object of base class
Include a member to calculate the gross salary of regular Employee using formula Gross salary = Basic salary + HA + DRA. where HA AND DRA should be stored as constant static data members of class. Include a member to calculate the gross salary of Part time Employee using formula Gross salary = Pay per hrs * no. of hrs. where pay per hrs. should be stored as constant static data members of class. Calculate the salary of a both types of employee using virtual function and display it .