Write a java program to calculate the average of 3 marks Data members:
String name - to store the name of the student
int n1,n2,n3 - to store 3 subject marks
double avg -to store the average of three marks Methods:
void average()- to calculate the average
[Hint: to find the average : add all the marks and divide by number of marks]
void display() -to display the name of the student and the average marks
Write the main method, create object and invoke the methods.
Answers
Answered by
0
Answer:
The larvae of mosquitoes live in water and provide food for fish and other wildlife, including larger larvae of other species such as dragonflies. The mosquito larvae themselves consume a lot of organic matter in wetlands, helping recycle nutrients back into the ecosystem.
Similar questions