1.

Develop a Java program using Blue J based on the concept of quiz competition (Scanner).please anyone answer this.dont spam plzzz ....​

Answer»

class quizz

{

public STATIC void MAIN(String args [ ] )

{

int score = 0;

System .out. println ("Welcome to the game of quizz");

string questions [] = { "Fastest Bird " , " Tallest Building ", " Name of inventor of " Dynamite ", " Bengali Nobel PRIZE winner "};

string answer [] = { " Eagle ", " Burj KHALIFA ", " Alfred Nobel ", " Rabindranath Tagore "};

System.out.println (" Answer the following questions ") ;

for ( int i=0 ; i< = 3; i++ )

{

System. out. println ( question [ i ] );

string a = in . next ( );

if ( a . equals ( answer [ i ] ) )

score ++;

}

System. out .println ( " Your score is = "+ score );

}

}



Discussion

No Comment Found