[go: up one dir, main page]

0% found this document useful (0 votes)
63 views35 pages

Project

This document describes a quiz program developed in Java that asks sports-related multiple choice questions. It displays the question, four answer choices, records the user's answer, calculates the score, and provides feedback. If the user's score is over 200, they win a prize without tires, over 400 they win a lifetime trip. The program contains 10 sports questions and would follow similar logic for food/drink or mixed topics if selected by the user.

Uploaded by

Rajan Kashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views35 pages

Project

This document describes a quiz program developed in Java that asks sports-related multiple choice questions. It displays the question, four answer choices, records the user's answer, calculates the score, and provides feedback. If the user's score is over 200, they win a prize without tires, over 400 they win a lifetime trip. The program contains 10 sports questions and would follow similar logic for food/drink or mixed topics if selected by the user.

Uploaded by

Rajan Kashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 35

Made By:-

Teacher Name:-

PROJECT : (DEVELOP A QUIZ)


Project Statement :
Program that displays questions and four choices of
answers. The user
enters the answer and accordingly his score is
calculated.

import java.io.*;
import java.lang.*;
public class ads
{
public static void main(String[] args)throws
IOException
{
System.out.println(" *** WELCOME TO THE WORLD
OF QUIZ! LET US SEE HOW FAR YOU CAN GO *** ");
System.out.println("
****************************************************
*************** ");
System.out.println();
System.out.println("==================
===============================
====================");
System.out.println(" 1.*** SPORTS ***");
System.out.println(" 2.*** FOOD & DRINK ***");
System.out.println(" 3.*** MIXED BAG ***");
System.out.println();

System.out.println("==================
===============================
====================");
System.out.println(" +++++ ENTER YOUR CHOICE
+++++ ");
InputStreamReader reader=new
InputStreamReader(System.in);
BufferedReaderinput=new BufferedReader(reader);
String x1 = input.readLine();
int choice =Integer.parseInt(x1);
if(choice==1)
{
int sc = 0;
System.out.println(" ^^^^^^^^ GET READTY
FOR THE BRAIN STORM ^^^^^^^^ ");
System.out.println("~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~");
System.out.println();
System.out.println(" *****Which Indian cricketer is
popularly called'Jammy'?*****");

System.out.println("#### 1.Sachin Tendulkar


####");
System.out.println("#### 2.Saurav Ganguly
####");
System.out.println("#### 3.Yuvraj Singh
####");System.out.println("#### 4.Rahul Dravid
####");
System.out.println("========ENTER YOUR
CHOICE ========");
String n2 = input.readLine();
int v =Integer.parseInt(n2);
if (v==4)
{

System.out.println("~~~~~~~~ YOU ARE ON THE


RIGHT TRACK! ~~~~~~~~");
sc = sc+50;
System.out.println(" YOUR SCORE IS"+SC);
}
else

System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME! THE CORRECT ANSWER IS RAHUL
DRAVID. ^^^^^^^^");
System.out.println("***** Which is the only
cricketer to score a four hundred (not out) *****?");
System.out.println("#### 1.Ricky Pointing
####");
System.out.println("#### 2.Jacques Kallis
####");
System.out.println("#### 3.Brain Lara
####");
System.out.println("#### 4.Chris Harris
####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String n = input.readLine();
int a=Integer.parseInt(n);
if(a==3)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);


}
else
System.out.println("^^^^^^^^ SORRY! BETTER
LUCK NEXT TIME! THE CORRECT ANSWER IS BRIAN
LARA. ^^^^^^^^");
System.out.println("***** What would the letter PB
next to an athlete's name signify? *****");
System.out.println("#### 1.Post Box ####");
System.out.println("#### 2.Personal Best
####");
System.out.println("#### 3.Pin Ball ####");
System.out.println("#### 4.Play Banned ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String m1 = input.readLine();
int k1 = Integer.parseInt(m1);
if(k1==2)
{
System.out.printn("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");

sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);
}
else
System.out.println("^^^^^^^^SORRY! BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
PERSONAL BEST. ^^^^^^^^");
System.out.println("***** What is the shortest
distance in a track & field event where the runners
are allows to break lanes? *****");
System.out.println("#### 1.200 m ####");
System.out.println("#### 2.800 m ####");
System.out.printin("#### 3.600 m ####");
System.out.println("#### 4.400 m ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String s1 = input.readLine();
int r =Integer.parseInt(s1);
if(r==2)
{

System.out.println("~~~~~~~~ YOU ARE KNOW


THE RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME !THE CORREST ANSWER IS 800M.
^^^^^^^^");
System.out.println("***** The standard colours of
which sporting event are green & purple? *****");
System.out.println("#### 1.Davis Cup ####");
System.out.println("#### 2.Asia Cup ####");
System.out.println("#### 3.Wimbledon ####");
System.out.println("#### 4.Euro Cup ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String t1 = input.readLine();
int h1=Integer.parseInt(t1);
if(h1==3)

{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
WIMBLEDON. ^^^^^^^^");
System.out.println("***** The Olympic gold medal
consists of 5.2% of which metal? *****");
System.out.println("#### 1.Gold ####");
System.out.println("#### 2.Platinum ####");
System.out.println("#### 3.Silver ####");
System.out.println("#### 4.Copper ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String b = input.readLine();
int z=Integer.parseInt(b);

if(z==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc = sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS GOLD.
^^^^^^^^");
System.out.println("***** Which of these game is
officially play only by girl? *****");
System.out.println("#### 1.Volly ball ####");
System.out.println("#### 2.Net ball ####");
System.out.println("#### 3.Base ball ####");
System.out.println("#### 4.Lawn tennis ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String o = input.readLine();

int G5 = Integer.parseInt(o);
if(G5==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME !THE CORRECT ANSWER IS NET
BALL. ^^^^^^^^");
System.out.println("***** Who was the first
cricketer to score 1000 Test runs, play 100 Test
matches & take 100 Test catches? *****");
System.out.println("#### 1.Garfeild Sobers
####");
System.out.println("#### 2.Allan Donald ####");
System.out.println("#### 3.lan Chappel ####");
System.out.println("#### 4.Kapil dev ####");

System.out.println("======== ENTER YOUR


CHOICE ========");
String d8 = input.readLine():
int w0=Integer.parseInt(d8);
if(w0==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME !THE CORRECT ANSWER IS
GARFIELD SOBERS. ^^^^^^^^");
System.out.println("***** How many players are
there in the game of basket ball?*****");
System.out.println("#### 1.Five ####");
System.out.println("#### 2.Six ####");
System.out.println("#### 3.Eight ####");

System.out.println("#### 4.Eleven ####");


System.out.println("======== ENTER YOUR
CHOICE ========");
String d=input.readLine();
int w=Integer.parseInt(d);
if(w==2);
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS SIX.
^^^^^^^^");
System.out.println("%%%%%%%% FINALLY YOU
HAVE SCORED=" +SC+"POINTS %%%%%%%%");
if(sc<200) System.out.println("!!!!! SORRY! WE
DON'T HAVE A PRIZE FOR YOU !!!!!");

else if(sc>=200 && sc<400)


System.out.println("#### CONGRATULATIONS!
YOU WIN A BIG GRAND KINETIC BOSS WITHOUT
TYRES. HURRAY! ####");
else if(sc>400 && sc<=500)System.out.println("%
%%%% CONGRATULATIONS! YOU WIN A LIFE LONG
TRIP TO YOUR HOME. LUCKY GUY! %%%%%");
}
else
if(choice==2)
{
int sc=0;
System.out.println("***** What is common to the
following:bangalpalli, safeda, chausa, langda,
malda? *****);
System.out.println("#### 1.Apple ####");
System.out.println("#### 2.Mango ####");
System.out.println("#### 3.Banana ####");
System.out.println("#### 4.Orange ####");
System.out.println("======== ENTER YOUR
CHOICE ========");

String y = input.readLine();
int e=Integer.parseInt(y);
if(e==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOURS SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
MANGO. ^^^^^^^^");
System.out.println("***** Which is the most widely
cultivated fruit in the world? *****");
System.out.println("#### 1.Apple ####);
System.out.println("#### 2.Lemon ####);
System.out.println("#### 3.Banana ####");
System.out.println("#### 4.Grapes ####");

System.out.println("======== ENTER YOUR


CHOICE ========");
String c = input.readLine();
int f=Integer.parseInt(c);
if(f==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME !THE CORRECT ANSWER IS APPLE.
^^^^^^^^");
System.out.println("***** American call this edible
oat meal. How do we refer to it? *****");
System.out.println("#### 1.Soup ####");
System.out.println("#### 2.Sprouts ####);
System.out.println("#### 3.Salad ####);

System.out.println("#### 4.Porridge ####");


System.out.println("======== ENTER YOUR
CHOICE ========");
String q = input.readLine();
int l=Integer.parseInt(q);
If(l==4)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIM!E!THE CORRECT ANSWER IS
PORRIDGE. ^^^^^^^^");
System.out.println("***** Which country is
considered the birth place of pizza? *****");
System.out.println("#### 1.France ####");
System.out.println("#### 2.Italy ####");

System.out.println("#### 3.Germany ####");


System.out.println("#### 4.Greece ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String p = inputreadLine();
int g=Integer.parseInt(p);
if(g==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS ITALY.
^^^^^^^^");
System.out.println("***** If bombay is well known
for its halwa and calcutta for its rossogollas, what
sweet meat is delhi famous for? *****");
System.out.println("#### 1.Laddoos ####");

System.out.println("#### 2.Peda ####");


System.out.println("#### 3.Jalebi ####");
System.out.println("#### 4.Burfi ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String j = input.readLine();
int x=Integer.parseInt(j);
if(x==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc");
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
LADDOOS. ^^^^^^^^");
System.out.println("#### 1.Banana ####");
System.out.println("#### 2.Papaya ####");

System.out.println("#### 3.Apple ####");


System.out.println("#### 4.Cherry ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String p7=integer.readLine();
int g6=Integer.parseInt(p7);
if(g6==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME !THE CORRECT ANSWER IS
PAPAYA. ! ^^^^^^^^");
System.out.println("***** Which is the only family
of food that does not ripen after plucking ? *****");
System.out.println("#### 1.Litchi ####");

System.out.println("#### 2.Orange ####");


System.out.println("#### 3.Strawberry ####");
System.out.println("#### 4.Cherry ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v1 = input.readLine();
int ch=Integer.parseInt(v1);
if(ch==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc");
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWERIS
ORANGE ^^^^^^^^");
System.out.println("***** They are called Golgupas
in delhi and Puuchkas in Calcutta. What are they
reffered to as in Mumbai ? *****");

System.out.println("#### 1.Bhelpuri ####");


System.out.println("#### 2.Aoo chat ####");
System.out.println("#### 3.Panipuri ####");
System.out.println("#### 4.Chana Bhatura
####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v2 = input.readLine();
int re=Integer.parseInt(v2);
if(re==3)
{
System.out.println("~~~~~~~~ YOUR ARE ON
THE RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
PANIPURI. ^^^^^^^^");

System.out.println("%%%%%%%%
FINALLY YOU
HAVE SCORED=" +sc+"POINTS %%%%%%%%");
if(sc<200)System.out.println("!!!!!!!! SORRY!
WEDON'T HAVE A PRIZE FOR YOU !!!!!!!!");
else if(sc<=200 &&
sc<=400)System.out.println("####
CONGRATULATIONS! YOU WIN A LIFE LONGE TRIP
TO YOUR HOME. LUCKY GUY! %%%%%%%%");
}
else
if(choice==3)
{
int sc = 0;
System.out.println("***** Something beautiful for
'is a book by Malcolm Muggeridge. Who is the
subject of this book *****");
System.out.println("#### 1.Mother Teresa
####");
System.out.println("#### 2.Arundhati Roy
####");
System.out.println("#### 3.Ameliya Arhart
####");

System.out.println("#### 4.Rabindranath Tagore


####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String t1 = input.readLine();
int h1 = Integer.parseInt(t1);
if(h1==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
MOTHER TERESA. ^^^^^^");
System.out.println("***** Which indian has the
most number of roads named after him? *****");
System.out.println("#### 1.Mahatma Ghandi
####");

System.out.println("#### 2.B.R.Ambedkar
####");
System.out.println("#### 3.Shbhash Chandra
Bose ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v2 = input.readLine();
int opt=Integer.parseInt(v2);
if(opt==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
MAHATMA GANDHI. ^^^^^^^^");

System.out.println("***** If an indian army officer


has three stars on his car plate, what is his ranks?
*****");
System.out.println("#### 1.Captain ####");
System.out.println("#### 2.Brigadier ####");
System.out.println("#### 3.Lieutenant general
####");
System.out.println("#### 4.Major ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v3 = input.readLine();
int flag = Integer.parseInt(v3);
if(flag==3)
{
System.out.println("~~~~~~~~ YOUR SCORE
IS"+sc);
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME !THE CORRECT ANSWER IS
LIEUTENANT GENERAL. ^^^^^^^^");

System.out.println("***** Who made his file debut


in 'Saat Hindustani'? *****");
System.out.println("#### 1.Dharmendra ####");
System.out.println("#### 2.Amitabh Bachan
####");
System.out.println("#### 3.Rajesh Khanna
####");
System.out.println("#### 4.Jitendra ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
Stirng v4 = input.readLine();
int option = Integer.parseInt(v4);
if(option==2)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else

System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
AMITABH BACHCHAN. ^^^^^^^^");
System.out.println("***** What did Chaelie Chaplin
always carry in his hand? *****");
System.out.println("#### 1.Stick ####");
System.out.println("#### 2.Bag ####");
System.out.println("#### 3.Hat ####");
System.out.println("#### 4.Cartoon mask
####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v5 = input.readLine();
int max = Integer.parseInt(v5);
if(max==1);
{
System.out.println("~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}

else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME ! THE CORRECT ANSWER IS STICK.
^^^^^^^^");
System.out.println("***** What everyday kitchen
item can be used to remove ball point stains?
*****");
System.out.println("#### 1.Water ####");
System.out.println("#### 2.Salt ####");
System.out.println("#### 3.Sugar ####");
System.out.prinrln("#### 4.Milk ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v6 = input.readLine();
int min =Integer.parseInt(v6);
if(min==4)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);

}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME! THE CORRECT ANSWER IS MILK.
^^^^^^^^");
System.out.println("***** The colour of the highest
belt in karate is black. What is the colour of the
lowest belt? *****");
System.out.println("#### 1.Red ####");
System.out.println("#### 2.Blue ####");
System.out.println("#### 3.White ####");
System.out.println("#### 4.Yellow ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v7 = input.readLine();
int abs =Integer.parseInt(v7);
if(abs==3)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;

System.out.println("YOUR SCORE"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS WHITE.
^^^^^^^^");
System.out.println("***** Which river in Europe is
referred to as 'W'? *****");
System.out.println("#### 1.Volga ####");
System.out.println("#### 2.Rhine ####");
System.out.println("#### 3.Siene ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v9 = input.readLine();
int sm =Integer.parseInt(v9);
if(sm==4);
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");
sc=sc+50;

System.out.println("YOUR SCORE IS"+sc);


}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
DANUBE. ^^^^^^");
System.out.println("***** If your mother was a
Horticulturist, what would she be interested in?
*****");
System.out.println("#### 1.Flower & Gardening
####");
System.out.println("#### 2.Cosmetics ####");
System.out.println("#### 3.Space ####");
System.out.println("#### 4.Medicine ####);
System.out.println("======== ENTER YOUR
CHOICE ========");
String v11 = input.readLine();
if(sg==1)
{
System.out.println("~~~~~~~~ YOU ARE ON THE
RIGHT TRACK! ~~~~~~~~");

sc=sc+50;
System.out.println("YOUR SORCE IS"+sc);
}
else
System.out.println("^^^^^^^^ SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
FLOWER AND GARDENING. ^^^^^^^^");
System.out.println("***** Which member of the
cat's family is the snake's greatest enemy? *****");
System.out.println("#### 1.Cat ####");
System.out.println("#### 2.Lion ####");
System.out.println("#### 3.Leopard ####");
System.out.println("#### 4.Mongoose ####");
System.out.println("======== ENTER YOUR
CHOICE ========");
String v12 = input.readline();
int sl =Integer.parseInt(v12);
if(sl==4)
{

System.out.println("~~~~~~~~ YOU ARE ON THE


RIGHT TRACK! ~~~~~~~~);
sc=sc+50;
System.out.println("YOUR SCORE IS"+sc);
}
else
System.out.println("^^^^^^^^SORRY!BETTER
LUCK NEXT TIME!THE CORRECT ANSWER IS
MONGOOSE. ^^^^^^^^");
System.out.println("%%%%%%%% FINALLY YOU
HAVE SCORED=" +sc+"POINTS %%%%%%%
%55");
if(sc<200)System.out.println("***** SORRY!WE
DON'T HAVE A PRIZE FOR YOU *****");
else if(sc>200 &&
sc<=400)System.out.println("########
CONGRATULATION! YOU WIN A BIG GRAND KINETIC
BOSS WITHOUT TYPRES. HURRAY! ########");
else if (sc>400 && sc<=500)System.out.println("%
%%%%%%% CONGRATULATION! YOU WIN A LIFE
LONG TRIP TO YOUR HOME. LUCKY GUY! %%%%%
%%%");

}
else
System.out.println("@@@@@@@@ SORRY!
WRONG CHOICE @@@@@@@@");
}

You might also like