0% found this document useful (0 votes)
6 views

Student Class Program

Uploaded by

ayushamber02
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Student Class Program

Uploaded by

ayushamber02
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Write a program in c++ to create student class with 6 data members’ name, rollno, marks1, marks2,

marks3, average.

Also create member functions like input to input all data members, display member function to display
value of all data members, compute member function to assign average data member the average of
marks1, marks2 and marks3, edit_name member function to allow user to enter new value for name
and edit_rollno member function to allow user to enter new rollno.

create object of student class and then call member functions in the order (input, compute, display,
edit_name, edit_rollno, display)

You might also like