import java.util.Scanner;
public class quiz {
public static void main(String[] args) {
final String TRUE= "True";
final String FALSE= "False";
int correctAns= 0;
Scanner in= new Scanner(System.in);
do{
System.out.println("Q1: Which month has 28 days in it?");
System.out.println("1:January");
System.out.println("2:February");
System.out.println("3:Every Month...");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 3)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
do {
System.out.println("Q2: A farmer had 15 sheep, and all but"
+ " 8 died. How many sheep are left?");
System.out.println("1:Seven");
System.out.println("2:Eight");
System.out.println("3:Three");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 2)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
do {
System.out.println("Q3: In Britain, there is a 4th of July.");
System.out.println("1:True");
System.out.println("2:False");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 1)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
do {
System.out.println("Q4: How many cheeks do you have?");
System.out.println("1:Two");
System.out.println("2:Three");
System.out.println("3:Four");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 3)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
do {
System.out.println("Q5: A 16 year old boy has had 16 birth days.");
System.out.println("1:True");
System.out.println("2:False");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 2)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
do {
System.out.println("Q6: Panama hats are made in Panama.");
System.out.println("1:True");
System.out.println("2:False");
System.out.println("Enter the number you believe the answer"
+ "is assigned to.");
int input= in.nextInt();
if (input == 2)
{
System.out.println("Correct!");
correctAns++;
}
else
{
System.out.println("Incorrect...");
}
break;
}while(true);
}
}