Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

find the marks for a rank from a series of marks

Ads

 
 

Share on Google+Share on Google+

bubaiii
find the marks for a rank from a series of marks
1 Answer(s)      6 years and 5 months ago
Posted in : Java Beginners

find the marks for a rank from a series of marks

Ads
View Answers

February 24, 2011 at 8:20 PM


import java.util.*;

class  marksOfRank {
  public static void main(String[] args) throws Exception{
  int array[]={2,4,2,5,2,4,3,4,5,2};
  int rank=5;
  for(int i=0;i<9;i++){
    for(j=0;j<10;j++){
     if(array[i]<array[j]){
       int temp=array[i];
       array[i]=array[j];
       array[j]=temp;
        }
   System.out.println(array[rank]);
   }
}

Ads









Related Tutorials/Questions & Answers:
Marks
Marks       Giving score to article as Digg does. Read full Description
Student Marks
marks entered by user and find the grade. Create a simple application which can calculate 5 marks entered by user and find the grade. You must display the grade in a dialog message. You may choose whether to get input (5 marks) from TextField
Advertisements
Student Marks
. (A,B,Câ?¦..) Marks for â??Computer Programming Assignment 1â?? (out of 25 marks) Marks for â??Computer Programming Assignment 2â?? (out of 25 marks) Marks for â??Computer Programming Examâ?? (out of 50 marks
Java Program for Calculating Marks
that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10 students. The marks consist of two tests, test 1 and test 2. I also need to calculate
Java Program for Calculating Marks
that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10 students. The marks consist of two tests, test 1 and test 2. I also need to calculate
Java Program for Calculating Marks
that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10 students. The marks consist of two tests, test 1 and test 2. I also need to calculate
Java Program for Calculating Marks
that requires me to a write simple java program that will calculate marks for 10 students. I must use an array to ask user to key in the marks for the 10 students. The marks consist of two tests, test 1 and test 2. I also need to calculate
marks - Java Beginners
marks  the marks obtained by 100 students in a subject are tabulated as fallow:- NAME MARKS wap a program to input the names and marks of the students in the subject of computer
array of students with marks list
array of students with marks list  There are 4 array of numbers or scores as below. They are called marks list and represent the scores individual... across all lists and also the number of students (4 in this case). Marks List 1
program to print total marks
program to print total marks  program to input total marks out of 600 marks as an argument and print the stream allotted using the following criteria 401 & above - PCM 301-400 - ZBC 201-300- Commerce 101-200 - Arts
program to input marks
program to input marks  program to input marks ,name in computer application 7 annual fees to be paid .Decide the scholarship amount as per the given criteria Marks Scholarship(%)on Annual Fees =90
calculati marks for objective question set?
calculati marks for objective question set?  how to calculate marks for objective question set
Write a program to display grade message according to the marks
to the marks..........   Here is a code that accepts the number of students and their marks and display the grade according to student's marks...("Find"); lab.setBounds(10,10,150,20); text.setBounds(180,10,100,20
student marks sheet genaration in struts frame work
student marks sheet genaration in struts frame work  Hi every body iam using struts frame work back end as oracle 10g xe i wanna urgent code for student marks genaration code please help me thanks in advance
Write a program that takes the marks of user as input
Write a program that takes the marks of user as input  Write a program that takes the marks of user as input. If marks are greater then 60 the program should display "Great, you have passed the course", else the program should
Write a JSP program to display the grade of a student by accepting the marks of five subjects.
Write a JSP program to display the grade of a student by accepting the marks of five subjects.  Write a JSP program to display the grade of a student by accepting the marks of five subjects
How to solve this java code by adding the student marks not in the list of the table. For example -10 and 156 in GUI?
How to solve this java code by adding the student marks not in the list...: "); final JTextField text=new JTextField(20); JButton b=new JButton("Find... marks: "); double marks = Double.parseDouble(input); data
write a java program to print marklist of n students. input Register number, name and marks of three subjects.
write a java program to print marklist of "n " students. input Register number, name and marks of three subjects.  write a java program to print marklist of "n " students. input Register number, name and marks of three subjects
Find sum of series
Find sum of series This section illustrates you how to find the sum of n terms of the series using recursion. For this purpose, we have created a recursive function that takes the parameter 'n' up to which the sum of the series
series
series  series 2-4+6-8+..............-20
MySQL rank
@rank=0; SELECT @rank:=@rank+1 AS rank, id, name, subject FROM mca... MySQL rank       Many times there is a need to rank the records according to some specific field
Find a missing element from array
Find a missing element from array We have two arrays A and B where B consists of all the elements that are present in A but one element is missing from the array B. From these two arrays, we have to find the missing element from
Find Exact Location from IP address in java?
Find Exact Location from IP address in java?  I am looking for API where we can pass IP address and get the location (Cityname,Country name). please suggest any API OR sample code. Thank you
Find Cylinder area By inputting value from user
Find Cylinder area By inputting value from user  Hello Sir I need the code for calculating the area of a cylinder in which it asks radius value from user and then calculate area using this radius value. Please provide me
Find Second Largest Number from an Array
Find Second Largest Number from an Array This section illustrates you how to find the second largest number from an array. For this purpose, we have allowed... among them. Pulls the largest number out from the array and again check
Where can I find reviews of IT solutions company in India to choose from?
Where can I find reviews of IT solutions company in India to choose from?  Where can I find reviews of IT solutions company in India to choose from
find jar file name from multiple set of jar files
find jar file name from multiple set of jar files   I would like to find jar file name from multiple set of jar files where the given class nameâ??com.rational.ft.util.debugâ?
series printing
series printing  Question:- write a program to print the following series:- 0,1,3,6,15,21,28
series printing
series printing  Question:- write a program to print the following series:- 0,1,3,6,15,21,28
Find max and min value from Arraylist
Find max and min value from Arraylist In this tutorial, you will learn how to find the maximum and minimum value element from the ArrayList. Java provides direct methods to get maximum and minimum value from any collection class i.e
SERIES PROGRAMMING
SERIES PROGRAMMING  WAP to print the followin series till n terms: S = 1-4+9-16+25.............n