Define a class Student described as below-
Data members/ instance variables:
Name, age, m1, m2, m3 (marks in 3 subjects), maximum, average
Member Methods:
(i) A parameterized constructor to initialize the data members
(ii) To accept the details of a student
(iii) To compute the average and the maximum out of three numbers
(iv) To display the name, age, marks in three subjects, maximum and average
Write a main method to create an object of a class and call the above member methods.
Answers
Answered by
0
Answer:
write ans is 3
hope this helpful
Similar questions
English,
3 months ago
Science,
7 months ago
Math,
7 months ago
Political Science,
1 year ago
Business Studies,
1 year ago