Write a Program to perform the following scenario. Define a class student with roll no as member and getdata and putdata
Posted: Fri May 20, 2022 12:49 pm
Write a Program to perform the following scenario. Define a class student with roll no as member and getdata and putdata as member functions.. Define another class test that inherit the class student, this class test has data members as marks in the subject 1 and subject 2 with member functions getmark and putmark. Define another class result that inherit the class test with data member total and member function to compute the total marks. Note make use of the access specifier public For example: Test Input Result 1 101 Total =142.5 87.5 55.0 2 102 Total =118.0 72.6 45.4 Answer: (penalty regime: 0, 0, 10, 20, ... %)