Assignment 1
Assignment 1
It also
contains following data functions
Get() function is used to input values
Show() function is used to show values
Set() function is used to set values of data members using parameters
Getprice() function is used to return the value of price
Q2. Write a class Result that contains rollnum, name and marks of three subjects. The marks are
stored in an array of integers. The class also contains following member functions
Input() method is used to input value of data members
Show() function is used to display the value of data members
Total() method to return the total marks of stuents
Avg() method to return the average marks of a student
Q3. Write a class that has marks and grades as data members. A constructor with two parameters
initializes data members with the given values and member function display the values of data
members. Create two objects and display the values