this is the second part which is going to be called to price the list
names in the 1st program

//in the first method we are going to put list of names, then this
method is to enter price...

i want you guys to help me to find method to do the search method, and
the delete method

import javax.swing.JOptionPane;

public class Pricing {
    public static void main(String args[]){
        int mark[]={23,53,223,4,235,23};
       Mark ex=new Mark();
       System.out.println("no\t mark\ngrade"+"\n result");
       for(int i=0;i<mark.length;i++){
           ex.getREsult(23);
           int m=Integer.parseInt(JOptionPane.showInputDialog("ENTER
num"));
           System.out.println((i+1)+"\t"+mark[i]+ex.getREsult(m)
+""+ex.getGrad(mark[i]));
    }

}}



public class Mark {
    public String getGrad(int m){
        return m<40?"f":m<50?"D":m<60?"c":m<70?"b":m<80?"A-":"A";
    }
    public String getREsult(int m){
        return m<40?"fail":"Pass";
    }

}

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to