sum and average of grades

sum and average of grades

how to print a program which is sum and average of Korean (90), English(85), Mathematics(78), Biology(65), Chemistry(83)?

View Answers

February 8, 2011 at 3:27 PM

Java Find sum and average

class FindSum 
{
    public static void main(String[] args) 
    {
   int Korean =90, English =85, Mathematics=78, Biology= 65, Chemistry=83;
   int sum=Korean+English+Mathematics+Biology+Chemistry;
   int average=sum/5;
   System.out.println("Sum: "+sum);
   System.out.println("Average: "+average);
    }
}

March 9, 2011 at 2:11 PM

Average Age of my class?









Related Tutorials/Questions & Answers:
sum and average of grades
sum and average of grades  how to print a program which is sum and average of Korean (90), English(85), Mathematics(78), Biology(65), Chemistry(83
Calculate sum and Average in java
Calculate sum and Average in java  How to calculate sum and average.... Description:- In this example we are calculating sum and average of n numbers... the sum by the total number of numbers, we have determined the average of numbers
Advertisements
Example of Average, Sum, Min and Max functions in MySQL
Example of Average, Sum, Min and Max functions in MySQL  Hi, How to use the aggregate functions like Average, Sum, Min and Max in MySQL? Thanks... | +------------------+ 1 row in set (0.00 sec) mysql> select sum(email_count) from email
Grades
: -Average Grade -Display lowest grade -Display highest grade -Sort and display grades in ascending order -Search for a student by name. Any help much
Average
Average   I have created a file that reads in a text file for a combo..., assignments, etc.) so I can have the average of each item. I then need to graph...); } }); lblGrades.setText("Grades"); txtGrades.setToolTipText
sum
sum  a program to find the sum of the alternative diagit of it ex- no=123456 sum=1+3+5=9
Finding Average in JSP
, 78, 96}; float sum, average; sum = 0; for (int j = 0; j < grades.length; j++) { sum = grades[j] + sum; } average = sum / grades.length; out.println("
sum
; sum=sum+s; if(i==n){ System.out.print(s...+"+"); } System.out.print("\nSum of the series : "+sum
SQL Average Count
SQL Average Count       Average Count in SQL is used to count the aggregate sum of any field... illustrate an simple demonstrative example ,which helps you to calculate the average
Change the name of the grades
Change the name of the grades  Hi, i'm developing with polar chart and i want to change the name of the grades, for example: add("variable name",5) insted of add(20, 5). Somebody know how to do it? Tanks
calculate average
calculate average   Design and write a java program to determine all three digit numbers such that the sum of the cubes of the digits is equal... and write a program and calculate your final average in this course. The details
ModuleNotFoundError: No module named 'grades-check'
ModuleNotFoundError: No module named 'grades-check'  Hi, My Python... 'grades-check' How to remove the ModuleNotFoundError: No module named 'grades-check' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'grades-check'
ModuleNotFoundError: No module named 'grades-check'  Hi, My Python... 'grades-check' How to remove the ModuleNotFoundError: No module named 'grades-check' error? Thanks   Hi, In your python
Highest average score among 25 students
Highest average score among 25 students  a program that prompts the user to enter grades of 25 students in a class and grade them into 4 lessons (grades should range between 10 and 20, otherwise the user is prompted to enter
Student average
to maintain this status is to maintain an average not below 1.8. write a java program... should display the average grade of the student and would display the message...: 1.2 Enter number of units: 1 you got an average of 1.59 congratulation
How to calculate average of array in Java?
How to calculate average of array in Java?  Hi, I have an integer array and I want to calculate the average of the values in it. How to calculate average of array in Java? Thanks   Hi, You can iterate through
sum in JTable
sum in JTable  how to calculate sum from JTable's one field like total
sum of the series
sum of the series  Program to sum the series 1+1/1!+1/2!+1/3!+....n
Sum of seris
Sum of seris  Program to find the sum of the following series using a function declaration. sum=x-(xxx)/3!+(xxxxx)/5!-(xxxxxxx)/7!+.....(xx....x)/n!. Where n and x are entered from the keyboard
Average Age of my Class?
Average Age of my Class?  average age of my class
sum and avg function using HQL.
calculates sum of salary as- sum(emp.salary) and average of salary as- avg...sum and avg function using HQL.  How to use sum and avg function in HQL?   HQL supports many aggregate functions. Sum and avg are some
Sum of integers
Sum of integers  A Java program that reads an integer value from the user and displays i) the sum of all even integers between 1 and the input value, both inclusive. ii) The sum of all odd integers between 1 and the input
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-bulk-grades'
ModuleNotFoundError: No module named 'edx-bulk-grades'  Hi, My... named 'edx-bulk-grades' How to remove the ModuleNotFoundError: No module named 'edx-bulk-grades' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'edx-grades-api'
ModuleNotFoundError: No module named 'edx-grades-api'  Hi, My... named 'edx-grades-api' How to remove the ModuleNotFoundError: No module named 'edx-grades-api' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'average'
ModuleNotFoundError: No module named 'average'  Hi, My Python... 'average' How to remove the ModuleNotFoundError: No module named 'average... to install padas library. You can install average python with following command
sum
sum
sum
sum
sum
sum
sum
sum
Hibernate criteria average Example
Hibernate criteria average Example   How to find the average in Hibernate? Thanks   Example of finding average on a filed in Hibernate using criteria. For this you have to use Projections.avg() in your program. Check
compute the average of degrees
compute the average of degrees  using c++ language , write a program to do the following 1 enter three degrees of a student by the user . 2 compute the average of his degrees
How to calculate the average in Hibernate?
How to calculate the average in Hibernate?  Hi, I have to calculate the average in Hibernate. How to calculate the average in Hibernate? Thanks... of calculating the average on the fee field in database: Projections.avg("fee
SQL Average
SQL Average       SQL Average, the part of Aggregate Function. SQL Average is used to compute average value of the records in a table of the database. Understand
Calculate an average Age of my Class?
Calculate an average Age of my Class?  average age of my class
PHP Get Average - PHP
PHP Get Average  I am writing a method to calculate the average rating of the posted answers? can anyone help me with the method to calculate rating in PHP. In my code, we are providing maximum four options to the user to rate
SQL Average Count
SQL Average Count       Average Count in SQL is used to count the aggregate sum of any field... demonstrative example ,which helps you to calculate the average count of any
Average of Array
Average of Array       In this section, we will learn how to get an average of array. For this, first... that calculates the average of array (result/nums.length). And finally it will display
ModuleNotFoundError: No module named 'sum'
ModuleNotFoundError: No module named 'sum'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'sum' How to remove the ModuleNotFoundError: No module named 'sum' error
ModuleNotFoundError: No module named 'sum'
ModuleNotFoundError: No module named 'sum'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'sum' How to remove the ModuleNotFoundError: No module named 'sum' error
ModuleNotFoundError: No module named 'django-average'
ModuleNotFoundError: No module named 'django-average'  Hi, My... named 'django-average' How to remove the ModuleNotFoundError: No module named 'django-average' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'average-pixels'
ModuleNotFoundError: No module named 'average-pixels'  Hi, My... named 'average-pixels' How to remove the ModuleNotFoundError: No module named 'average-pixels' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Dice-Average'
ModuleNotFoundError: No module named 'Dice-Average'  Hi, My Python... 'Dice-Average' How to remove the ModuleNotFoundError: No module named 'Dice-Average' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'average-pixels'
ModuleNotFoundError: No module named 'average-pixels'  Hi, My... named 'average-pixels' How to remove the ModuleNotFoundError: No module named 'average-pixels' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-average'
ModuleNotFoundError: No module named 'django-average'  Hi, My... named 'django-average' How to remove the ModuleNotFoundError: No module named 'django-average' error? Thanks   Hi, In your python

Ads