Write a C++ program in which a class Result that contains roll_no, name and marks of three subjects. The marks are stored in one dimensional array of integer type. The class also contains the...


Write a C++ program in which a class
Result
that contains
roll_no, name
and
marks
of three subjects. The marks are stored in one dimensional array of integer type.  The class also contains the following member functions:




  • The
    Input ( )
    function is used to insert the values in data members.

  • The
    Show ( )
    function is used to displays the values of data members.

  • The
    Total ( )
    function returns the total marks of the students.

  • The
    Avg ( )
    function returns the average marks of a student.









Output:



I CAUsers\hp\Documents\Student result.exe<br>enter ur Roll No...<br>1e0<br>enter ur name...<br>MAAZ<br>enter three subjects marks...<br>87<br>78<br>77<br>ur Roll No... ▪ 100<br>= MAAZ<br>ur name...<br>ur marks in subject e = 87<br>ur marks in subject 1 = 78<br>ur marks in subject 2 = 77<br>Total Marks...<br>Average Marks... - 80.6667<br>= 242<br>

Extracted text: I CAUsers\hp\Documents\Student result.exe enter ur Roll No... 1e0 enter ur name... MAAZ enter three subjects marks... 87 78 77 ur Roll No... ▪ 100 = MAAZ ur name... ur marks in subject e = 87 ur marks in subject 1 = 78 ur marks in subject 2 = 77 Total Marks... Average Marks... - 80.6667 = 242

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here