Fenil Essay

744 WordsDec 20, 20133 Pages
import java.io.*; public class Quiz Contest { public into score=0; public int a=7; InputStreamReader reader=new InputStreamReader(System.in); BufferedReader input=new BufferedReader(reader); public void result()throwsIOException { if(score==0) { System.out.println("Your Performance is alarming weak"); } if(score==8) { System.out.println("Well Done"); System.out.println("You have won Rs50000.CONGRATULATION"); } else { System.out.println("Better luck next time"); } } public void display() { System.out.println("================================================="); System.out.println("Welcome to Quiz"); System.out.println("ANSWER ALL THE 7 QUESTIONS AND WIN Rs 50000"); System.out.println("HELLO EVERYBODY.HERE STARTS THE QUIZ PROGRAM"); System.out.println("================================================="); } System.out.println("CHOOSE THE CORRECT ANSWER"); System.out.println("Press enter key to proceed ahead"); System.out.println("#################################################"); public void quest()throwsSystem.out.printlnIOException { System.out.println("The Storage Medium With Highest Storage Capacity"); System.out.println("1:Floppy"); System.out.println("2:Optical Disk"); System.out.println("3:Magnetic Tape"); System.out.println("4:Hard Disc"); System.out.println("Select your answer"); InputStreamReader reader=new InputStreamReader(System.in); BufferedReader input=new BufferedReader(reader); String n=input.readline(); a=Integer.parseInt(n); if(a==4) { System.out.println("Bilkul Sahi Jawab Deeya Apne!"); score=score+1; } else { System.out.println("It is a wrong answer"); System.out.println("Your first answer is a wrong "); System.out.println("Sorry!You cannnot win a prise"); System.out.println("But you can test your level"); } System.out.println("Your score is="+score); } public void

More about Fenil Essay

Open Document