Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions sum and average of grades

Have Programming Question? Ask it here!
 
 
 


rhoxart faye rosario
sum and average of grades
2 Answer(s)      3 years and 7 months ago
Posted in : Java Interview Questions


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


Advertisement
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
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
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
sum
; sum=sum+s; if(i==n){ System.out.print(s...+"+"); } System.out.print("\nSum of the series : "+sum
Finding Average in JSP
; <% float grades[] = {98, 99, 100, 97, 78, 96}; float sum, average...++) { sum = grades[j] + sum; } average = sum...Finding Average in JSP      
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
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
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
Average Age of my Class?
Average Age of my Class?  average age of my class
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
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
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
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
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
sum
sum
sum
sum
sum
sum
sum
sum
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
SQL Average Count
SQL Average Count       Average Count in SQL is used to count the aggregate sum of any field... example ,which helps you to calculate the average count of any records specified
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
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
Calculate an average Age of my Class?
Calculate an average Age of my Class?  average age of my class
MySQL Average Command
MySQL Average Command This example illustrates how to execute the Average command in MySQL. In this example we create a select query to find the average of 'lastAccess' field.   Query  
Sum of first n numbers
Sum of first n numbers  i want a simple java program which will show the sum of first n numbers....   import java.util.*; public class...=input.nextInt(); long sum=0; for(int i=1;i<=n;i++){ sum+=i
calculate sum of individual digit
calculate sum of individual digit   How calculate product of first and last digit of indiviual numbers Like a=43278 4*8=32
Sum - JSP-Servlet
the total sum of items from database using Java servlet or Jsp and html form. It should display the affected rows and the total sum of all in a seperate column..., Sum Into Database Salary
sum of fibonacci series
sum of fibonacci series  Write a Java program to print Fibonacci series upto n and find their sum also. 0+1+1+2+3+5+8+13+21ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦ΓΆβ?¬Β¦=sum   Hi, Please see the thread Fibonacci program. Thanks
Sum of positive and negative numbers
Sum of positive and negative numbers  Hi if someone could help... the sum of all the positive integers and the sum of all the negative integers.  ...]; } } System.out.println("Sum of positive numbers: "+sum2); System.out.println
Using sum() in hibernate criteria.
Using sum() in hibernate criteria.  How to calculate sum() in hibernate criteria by using projection?   You can calculate sum of any...(employee); } } } Output: Hibernate: select sum
sum database column
sum database column  please i have two columns-col1 and col2, col1... 3 Soap 4 how will i query the database to sum the Items... for you. select item, sum(quqantity) from `order` group by item
Hibernate criteria sum.
Hibernate criteria  sum. Here, we will introduce you to about the sum() function . It returns the sum of total value of column. Syntax : Criteria... message as shown below: Hibernate: select sum(this_.fee
calculate sum of individual digit
calculate sum of individual digit  Hi How to calculate product of first snd last digit of indiviual digit Like Num=23456 S=2*6
Sum database colum in java
Sum database colum in java  please i have two columns-col1 and col2... the database to sum the Items and display output so that it will be like... question what you have asked. select item, sum(quqantity) from `order` group
Determine Average by removing Largest and Smallest Number
into a variable 'sum' which is further used in determining the average. Here is the code...[i]; } System.out.println("Final Score: " + sum); int average = sum / 8...Determine Average by removing Largest and Smallest Number In this section, you
Sum - JSP-Servlet
Sum  Hi Guys, thank you all for support for us all. Please I want to sum up from a particular row from the database, get all the rows affected... = con.createStatement(); ResultSet res = st.executeQuery("SELECT SUM(amount) FROM
Hibernate Criteria average example
Hibernate Criteria average example - Learn how to perform Hibernate Criteria Average Query Here we will use the avg() method of org.hibernate.criterion.Projections factory for getting the Projection instance for performing the average
Advertisements
 

 

 

DMCA.com