Computer Science, asked by sajdaakhtershah786, 1 month ago

write a program which will input the number of students in a class input the marks of all students.find the average marks obtained in the class. find highest marks obtained in class

Answers

Answered by preethi7780
0

Explanation:

Java Program To Calculate Average Marks | 5 Methods

Java program to calculate the average of marks. Here we cover five simple ways to find out the average of marks in Java programming. If you know the basics of coding, you can even write more than 5+ ways. However, as a newbie, we share the program in 5 different ways. Do check it out. Our database consists of more than 100+ sample Java programs. The following program is written in five simple ways: standard values, class, by using method, by using command line arguments.

Table Of Contents:

Java: Convert Hours To Seconds & Minutes | Vice Versa

Java Number Of Words In A String | 4 Ways

So, How to calculate the average of marks in math?

A: That’s quite simple, for example, consider you have just completed your sem exams, and the result announced as:

Maths – 75

Science – 55

Operating Systems – 80

Dataware house – 75

Now, sum up all – 285/4 = 71.25 ( Your average marks )

So, your average of entire subjects are = 71.25 ( Formula stated below)

java program for average of marks

That’s a standard and the only way to calculate your average of marks. Now, check out the following programs.

I hope this helps to you

Similar questions