find the marks for a rank from a series of marks

find the marks for a rank from a series of marks

find the marks for a rank from a series of marks

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]);
   }
}









Related Tutorials/Questions & Answers:
Marks
Marks       Giving score to article as Digg does. Read full DescriptionADS_TO_REPLACE_1
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
ModuleNotFoundError: No module named 'pytest-marks'
ModuleNotFoundError: No module named 'pytest-marks'  Hi, My Python... 'pytest-marks' How to remove the ModuleNotFoundError: No module named 'pytest-marks' error? Thanks   Hi, In your python
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
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
ModuleNotFoundError: No module named 'rank'
ModuleNotFoundError: No module named 'rank'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'rank' How to remove the ModuleNotFoundError: No module named 'rank' error
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
MySQL rank
; SELECT @rank:=@rank+1 AS rank, id, name, subject FROM mca ORDER BY id DESC... MySQL rank       Many times there is a need to rank the records according to some specific field
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
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 Array element from index using GUI
Find Array element from index using GUI In this tutorial, you will learn how to create an GUI application to find an array element from its index. For this, we have created an an array of 100 randomly chosen integers and allow
SERIES PROGRAMMING
SERIES PROGRAMMING  WAP to print the followin series till n terms: S = 1-4+9-16+25.............n
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ââ?¬Â
ModuleNotFoundError: No module named 'dl_rank'
ModuleNotFoundError: No module named 'dl_rank'  Hi, My Python..._rank' How to remove the ModuleNotFoundError: No module named 'dl_rank... to install padas library. You can install dl_rank python with following command
ModuleNotFoundError: No module named 'percentile-rank'
ModuleNotFoundError: No module named 'percentile-rank'  Hi, My... named 'percentile-rank' How to remove the ModuleNotFoundError: No module named 'percentile-rank' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'rank_filter'
ModuleNotFoundError: No module named 'rank_filter'  Hi, My Python... 'rank_filter' How to remove the ModuleNotFoundError: No module named 'rank_filter' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'rank-histogram'
ModuleNotFoundError: No module named 'rank-histogram'  Hi, My... named 'rank-histogram' How to remove the ModuleNotFoundError: No module named 'rank-histogram' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'Rank-Predictor-101883054'
ModuleNotFoundError: No module named 'Rank-Predictor-101883054'  Hi...: No module named 'Rank-Predictor-101883054' How to remove the ModuleNotFoundError: No module named 'Rank-Predictor-101883054' error? Thanks  
ModuleNotFoundError: No module named 'rank_provider'
ModuleNotFoundError: No module named 'rank_provider'  Hi, My... 'rank_provider' How to remove the ModuleNotFoundError: No module named 'rank_provider' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'reddit_rank'
ModuleNotFoundError: No module named 'reddit_rank'  Hi, My Python... 'reddit_rank' How to remove the ModuleNotFoundError: No module named 'reddit_rank' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'reddit_rank'
ModuleNotFoundError: No module named 'reddit_rank'  Hi, My Python... 'reddit_rank' How to remove the ModuleNotFoundError: No module named 'reddit_rank' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'style-rank'
ModuleNotFoundError: No module named 'style-rank'  Hi, My Python... 'style-rank' How to remove the ModuleNotFoundError: No module named 'style-rank' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'text-rank'
ModuleNotFoundError: No module named 'text-rank'  Hi, My Python... 'text-rank' How to remove the ModuleNotFoundError: No module named 'text-rank' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'text-rank'
ModuleNotFoundError: No module named 'text-rank'  Hi, My Python... 'text-rank' How to remove the ModuleNotFoundError: No module named 'text-rank' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'author-rank'
ModuleNotFoundError: No module named 'author-rank'  Hi, My Python... 'author-rank' How to remove the ModuleNotFoundError: No module named 'author-rank' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'C-Rank'
ModuleNotFoundError: No module named 'C-Rank'  Hi, My Python...-Rank' How to remove the ModuleNotFoundError: No module named 'C-Rank'... to install padas library. You can install C-Rank python with following command
ModuleNotFoundError: No module named 'dl_rank'
ModuleNotFoundError: No module named 'dl_rank'  Hi, My Python..._rank' How to remove the ModuleNotFoundError: No module named 'dl_rank... to install padas library. You can install dl_rank python with following command
how to find subarray from given large 2d array of arbritary dimension
how to find subarray from given large 2d array of arbritary dimension  my code is: import java.lang.*; import java.io.*; import java.io.File; import... to print the subarray of any dimension from given array file. i have tried upto
Series Program
Series Program  Please help me to write code for this series Write a Java Method to solve the following problem: a.Evaluate the result of the series: 1-2+3-4+5-6+ââ?¬Â¦Ã¢â?¬Â¦+n (or ââ?¬â??n depending on value of n

Ads