Computer Science, asked by samrata824, 1 month ago

Define a class called student with the following members:

class name student

Instance variables/Data member
nm (String) Student name
m1 (int) Physics marks
m2 (int) Chemistry marks
m3 (int) Mathematics marks
rem

Member functions/methods:
student() default constructor
void read() for reading in the values of member variable except
remarks
void display() display all the member variables
int average() calculates and returns the average of three marks
void setremark() sets the member variable rem according to the
following table

Average (av) Remarks
av =80 FIRST

Using a main method create an object and call the above methods.

Answers

Answered by gnishu2006
0

Answer:

this is 16 Hindi question please small 8 then I will give you the answer

Similar questions