public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
Scanner input = new Scanner(System.in);
System.out.println("\t\t••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
System.out.println("\t\t••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
System.out.print("\t\t••\t\t\t\t\t\t\t\t\t ");
System.out.println("••");
System.out.println("\t\t••\t\t\tWELCOME to Talent Competitions ☻ \t ••");
System.out.print("\t\t••\t\t\t\t\t\t\t\t\t ");
System.out.println("••");
System.out.println("\t\t••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
System.out.println("\t\t••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
JudgeScore me = new JudgeScore();
me.score(5);
// getLowestHighestscore you = new getLowestHighestscore();
// you.lowesthighest(e,m);
}
}
class JudgeScore{
void score(int j){
Scanner scan = new Scanner(System.in);
double[] score = new double[5];
System.out.println(" ");
for (int y=1;y<=5;y++)
{
System.out.println(" ");
System.out.println(" Please Enter The Score for Contestant #" + y + ":");
for(int x=1;x<=j;x++)
{
System.out.print("\t Judge #" + x + ": ");
score[x-1] = scan.nextDouble();
}
System.out.println("");
System.out.print("\tGiven Score: ");
for(int s=0;s<score.length;s++)
{
System.out.print(" "+score[s]);
}
System.out.println("");
}
This post has been edited by LieannM: 16 July 2011 - 07:55 AM

New Topic/Question
Reply



MultiQuote




|