Advertisement
Guest User

Untitled

a guest
Nov 18th, 2011
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 24.95 KB | None | 0 0
  1. import java.util.Scanner;
  2. /***********************************************************************************************************************
  3.  * Created by IntelliJ IDEA.
  4.  * User: Alan
  5.  * Date: 15/11/11
  6.  * Time: 17:50
  7.  * Leet program
  8.  **********************************************************************************************************************/
  9. public class MobileGamesSection
  10. {
  11.     static Scanner keyboard = new Scanner(System.in);
  12.     static String correctAnswer, incorrectAnswer = "Incorrect! No points for you!";
  13.     static int questionOneAnswer, questionTwoAnswer, questionThreeAnswer, questionFourAnswer, questionFiveAnswer, menuChoice, score;
  14.  
  15.     public static void mobileGamesMenu()
  16.     {   //Menu System
  17.         System.out.println("Welcome to the Mobile Games section of the quiz!");
  18.         System.out.println("Would you like to go straight to the quiz or would you like a brief training section on Mobile Games? If you would prefer you can also go back to the main menu.");
  19.         System.out.println("1. Start the quiz");
  20.         System.out.println("2. Start the training");
  21.         System.out.println("3. Back to main menu");
  22.         System.out.println("If a non-valid choice is entered you will be returned to this menu.");
  23.         System.out.print("What would you like to do? ");
  24.         menuChoice = keyboard.nextInt();
  25.         System.out.println("");
  26.         switch (menuChoice)
  27.         {   case 1:
  28.                 mobileGamesQuizMenu();
  29.                 break;
  30.             case 2:
  31.                 mobileGamesTrainingMenu();
  32.                 break;
  33.             case 3:
  34.                 menuTopic();
  35.                 break;
  36.             default:
  37.                 mobileGamesMenu();
  38.         }//switch
  39.     }//mobileGamesMenu
  40.  
  41.     public static void mobileGamesQuizMenu()
  42.     {
  43.         System.out.println("Welcome to the Mobile Games Quiz!");
  44.         System.out.println("What difficultly level would you like to attempt?");
  45.         System.out.println("1: Easy");
  46.         System.out.println("2: Medium");
  47.         System.out.println("3: Hard");
  48.         System.out.println("4: Back to Mobile Games Menu\t\t5: Back to Topic List");
  49.  
  50.         System.out.println("If a non-valid choice is entered you will be returned to this menu.");
  51.         System.out.print("What would you like to do? ");
  52.         menuChoice = keyboard.nextInt();
  53.         System.out.println("");
  54.         switch (menuChoice)
  55.         {
  56.             case 1:
  57.                 mobileGamesQuizEasy();
  58.                 break;
  59.             case 2:
  60.                 mobileGamesQuizMedium();
  61.                 break;
  62.             case 3:
  63.                 mobileGamesQuizHard();
  64.                 break;
  65.             case 4:
  66.                 mobileGamesMenu();
  67.                 break;
  68.             case 5:
  69.                 menuTopic();
  70.                 break;
  71.             default:
  72.                 mobileGamesQuizMenu();
  73.         }//switch
  74.     }//mobileGamesQuizMenu
  75.  
  76.     public static void mobileGamesQuizEasy()
  77.     {
  78.         int easyScore = 0;
  79.         questionOneAnswer = 1;
  80.         questionTwoAnswer = 3;
  81.         questionThreeAnswer = 4;
  82.         questionFourAnswer = 2;
  83.         questionFiveAnswer = 1;
  84.         correctAnswer = "Correct! You get 5 points!";
  85.         //Start of Quiz
  86.         //Question 1
  87.         System.out.println("Easy Difficulty Section");
  88.         System.out.println("Question 1. What are the birds trying to kill in Angry Birds? ");
  89.         System.out.println("1: Pigs");
  90.         System.out.println("2: Sheep");
  91.         System.out.println("3: Mice");
  92.         System.out.println("4: Cows");
  93.         System.out.print("Please enter your answer here: ");
  94.         menuChoice = keyboard.nextInt();
  95.         if (menuChoice == questionOneAnswer)
  96.         {
  97.             System.out.println(correctAnswer);
  98.             easyScore+=5;
  99.         }//if
  100.         else
  101.         {
  102.             System.out.println(incorrectAnswer);
  103.         }//else
  104.         System.out.println("");
  105.         //End of Question 1
  106.         //Question 2
  107.         System.out.println("Question 2. Complete the game name - Cut the _ _ _ _? ");
  108.         System.out.println("1: Cheese");
  109.         System.out.println("2: Chicken");
  110.         System.out.println("3: Rope");
  111.         System.out.println("4: Fruit");
  112.         System.out.print("Please enter your answer here: ");
  113.         menuChoice = keyboard.nextInt();
  114.         if (menuChoice == questionTwoAnswer)
  115.         {
  116.             System.out.println(correctAnswer);
  117.             easyScore+=5;
  118.         }//if
  119.         else
  120.         {
  121.             System.out.println(incorrectAnswer);
  122.         }//else
  123.         System.out.println("");
  124.         //End of Question 2
  125.         //Question 3
  126.         System.out.println("Question 3. Answer is 4? ");
  127.         System.out.println("1: ");
  128.         System.out.println("2: ");
  129.         System.out.println("3: ");
  130.         System.out.println("4: ");
  131.         System.out.print("Please enter your answer here: ");
  132.         menuChoice = keyboard.nextInt();
  133.         if (menuChoice == questionThreeAnswer)
  134.         {
  135.             System.out.println(correctAnswer);
  136.             easyScore+=5;
  137.         }//if
  138.         else
  139.         {
  140.             System.out.println(incorrectAnswer);
  141.         }//else
  142.         System.out.println("");
  143.         //End of Question 3
  144.         //Question 4
  145.         System.out.println("Question 4. Answer is 2? ");
  146.         System.out.println("1: ");
  147.         System.out.println("2: ");
  148.         System.out.println("3: ");
  149.         System.out.println("4: ");
  150.         System.out.print("Please enter your answer here: ");
  151.         menuChoice = keyboard.nextInt();
  152.         if (menuChoice == questionFourAnswer)
  153.         {
  154.             System.out.println(correctAnswer);
  155.             easyScore+=5;
  156.         }//if
  157.         else
  158.         {
  159.             System.out.println(incorrectAnswer);
  160.         }//else
  161.         System.out.println("");
  162.         //End of Question 4
  163.         //Question 5
  164.         System.out.println("Question 5. Answer is 1 ");
  165.         System.out.println("1: ");
  166.         System.out.println("2: ");
  167.         System.out.println("3: ");
  168.         System.out.println("4: ");
  169.         System.out.print("Please enter your answer here: ");
  170.         menuChoice = keyboard.nextInt();
  171.         if (menuChoice == questionFiveAnswer)
  172.         {
  173.             System.out.println(correctAnswer);
  174.             easyScore+=5;
  175.         }//if
  176.         else
  177.         {
  178.             System.out.println(incorrectAnswer);
  179.         }//else
  180.         System.out.println("");
  181.         //End of Question 5
  182.         //End of Quiz
  183.         //Beginning of Summary
  184.         System.out.println("Your final score for this section is: " + easyScore);
  185.         System.out.println("You have reached the end of the easy section of the quiz.\n");
  186.         System.out.println("From here you can choose to go to:");
  187.         System.out.println("1: Medium Quiz\t\t2: Quiz Menu");
  188.         System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  189.         System.out.print("What would you like to do? ");
  190.         System.out.println("");
  191.         menuChoice = keyboard.nextInt();
  192.         switch (menuChoice)
  193.         {
  194.             case 1: mobileGamesQuizMedium();
  195.                     break;
  196.             case 2: mobileGamesQuizMenu();
  197.                     break;
  198.             default: mobileGamesQuizMenu();
  199.         }//switch
  200.         //End of summary
  201.         //End of easy difficulty section
  202.     }//mobileGamesQuizEasy
  203.  
  204.     public static void mobileGamesQuizMedium()
  205.     {
  206.         int mediumScore = 0;
  207.         questionOneAnswer = 1;
  208.         questionTwoAnswer = 1;
  209.         questionThreeAnswer = 1;
  210.         questionFourAnswer = 1;
  211.         questionFiveAnswer = 1;
  212.         correctAnswer = "Correct! You get 10 points!";
  213.         //Start of Quiz
  214.         //Question 1
  215.         System.out.println("Medium Difficulty Section");
  216.         System.out.println("Question 1. Answer is 1? ");
  217.         System.out.println("1: ");
  218.         System.out.println("2: ");
  219.         System.out.println("3: ");
  220.         System.out.println("4: ");
  221.         System.out.print("Please enter your answer here: ");
  222.         menuChoice = keyboard.nextInt();
  223.         if (menuChoice == questionOneAnswer)
  224.         {
  225.             System.out.println(correctAnswer);
  226.             mediumScore+=10;
  227.         }//if
  228.         else
  229.         {
  230.             System.out.println(incorrectAnswer);
  231.         }//else
  232.         System.out.println("");
  233.         //End of Question 1
  234.         //Question 2
  235.         System.out.println("Question 2. Answer is 1? ");
  236.         System.out.println("1: Cheese");
  237.         System.out.println("2: Chicken");
  238.         System.out.println("3: Rope");
  239.         System.out.println("4: Fruit");
  240.         System.out.print("Please enter your answer here: ");
  241.         menuChoice = keyboard.nextInt();
  242.         if (menuChoice == questionTwoAnswer)
  243.         {
  244.             System.out.println(correctAnswer);
  245.             mediumScore+=10;
  246.         }//if
  247.         else
  248.         {
  249.             System.out.println(incorrectAnswer);
  250.         }//else
  251.         System.out.println("");
  252.         //End of Question 2
  253.         //Question 3
  254.         System.out.println("Question 3. Answer is 1? ");
  255.         System.out.println("1: ");
  256.         System.out.println("2: ");
  257.         System.out.println("3: ");
  258.         System.out.println("4: ");
  259.         System.out.print("Please enter your answer here: ");
  260.         menuChoice = keyboard.nextInt();
  261.         if (menuChoice == questionThreeAnswer)
  262.         {
  263.             System.out.println(correctAnswer);
  264.             mediumScore+=10;
  265.         }//if
  266.         else
  267.         {
  268.             System.out.println(incorrectAnswer);
  269.         }//else
  270.         System.out.println("");
  271.         //End of Question 3
  272.         //Question 4
  273.         System.out.println("Question 4. Answer is 1? ");
  274.         System.out.println("1: ");
  275.         System.out.println("2: ");
  276.         System.out.println("3: ");
  277.         System.out.println("4: ");
  278.         System.out.print("Please enter your answer here: ");
  279.         menuChoice = keyboard.nextInt();
  280.         if (menuChoice == questionFourAnswer)
  281.         {
  282.             System.out.println(correctAnswer);
  283.             mediumScore+=10;
  284.         }//if
  285.         else
  286.         {
  287.             System.out.println(incorrectAnswer);
  288.         }//else
  289.         System.out.println("");
  290.         //End of Question 4
  291.         //Question 5
  292.         System.out.println("Question 5. Answer is 1 ");
  293.         System.out.println("1: ");
  294.         System.out.println("2: ");
  295.         System.out.println("3: ");
  296.         System.out.println("4: ");
  297.         System.out.print("Please enter your answer here: ");
  298.         menuChoice = keyboard.nextInt();
  299.         if (menuChoice == questionFiveAnswer)
  300.         {
  301.             System.out.println(correctAnswer);
  302.             mediumScore+=10;
  303.         }//if
  304.         else
  305.         {
  306.             System.out.println(incorrectAnswer);
  307.         }//else
  308.         System.out.println("");
  309.         //End of Question 5
  310.         //End of Quiz
  311.         //Summary
  312.         System.out.println("Your final score for this section is: " + mediumScore);
  313.         System.out.println("You have reached the end of the hard section of the quiz.\n");
  314.         System.out.println("From here you can choose to go to:");
  315.         System.out.println("1: Hard Quiz\t\t2: Quiz Menu");
  316.         System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  317.         System.out.print("What would you like to do? ");
  318.         menuChoice = keyboard.nextInt();
  319.         switch (menuChoice)
  320.         {
  321.             case 1: mobileGamesQuizHard();
  322.                     break;
  323.             case 2: mobileGamesQuizMenu();
  324.                     break;
  325.             default: mobileGamesQuizMenu();
  326.         }//switch
  327.         //End of Medium difficulty section
  328.     }//mobileGamesQuizMedium
  329.  
  330.     public static void mobileGamesQuizHard()
  331.     {
  332.         int hardScore = 0;
  333.         questionOneAnswer = 1;
  334.         questionTwoAnswer = 1;
  335.         questionThreeAnswer = 1;
  336.         questionFourAnswer = 1;
  337.         questionFiveAnswer = 1;
  338.         correctAnswer = "Correct! You get 15 points!";
  339.         //Start of Quiz
  340.         //Question 1
  341.         System.out.println("Hard Difficulty Section");
  342.         System.out.println("Question 1. Answer 1? ");
  343.         System.out.println("1: 1");
  344.         System.out.println("2: 1");
  345.         System.out.println("3: 1");
  346.         System.out.println("4: 1");
  347.         System.out.print("Please enter your answer here: ");
  348.         menuChoice = keyboard.nextInt();
  349.         if (menuChoice == questionOneAnswer)
  350.         {
  351.             System.out.println(correctAnswer);
  352.             hardScore+=15;
  353.         }//if
  354.         else
  355.         {
  356.             System.out.println(incorrectAnswer);
  357.         }//else
  358.         System.out.println("");
  359.         //End of Question 1
  360.         //Question 2
  361.         System.out.println("Question 2. Answer is 1? ");
  362.         System.out.println("1: Cheese");
  363.         System.out.println("2: Chicken");
  364.         System.out.println("3: Rope");
  365.         System.out.println("4: Fruit");
  366.         System.out.print("Please enter your answer here: ");
  367.         menuChoice = keyboard.nextInt();
  368.         if (menuChoice == questionTwoAnswer)
  369.         {
  370.             System.out.println(correctAnswer);
  371.             hardScore+=15;
  372.         }//if
  373.         else
  374.         {
  375.             System.out.println(incorrectAnswer);
  376.         }//else
  377.         System.out.println("");
  378.         //End of Question 2
  379.         //Question 3
  380.         System.out.println("Question 3. Answer is 1? ");
  381.         System.out.println("1: ");
  382.         System.out.println("2: ");
  383.         System.out.println("3: ");
  384.         System.out.println("4: ");
  385.         System.out.print("Please enter your answer here: ");
  386.         menuChoice = keyboard.nextInt();
  387.         if (menuChoice == questionThreeAnswer)
  388.         {
  389.             System.out.println(correctAnswer);
  390.             hardScore+=15;
  391.         }//if
  392.         else
  393.         {
  394.             System.out.println(incorrectAnswer);
  395.         }//else
  396.         System.out.println("");
  397.         //End of Question 3
  398.         //Question 4
  399.         System.out.println("Question 4. Answer is 1? ");
  400.         System.out.println("1: ");
  401.         System.out.println("2: ");
  402.         System.out.println("3: ");
  403.         System.out.println("4: ");
  404.         System.out.print("Please enter your answer here: ");
  405.         menuChoice = keyboard.nextInt();
  406.         if (menuChoice == questionFourAnswer)
  407.         {
  408.             System.out.println(correctAnswer);
  409.             hardScore+=15;
  410.         }//if
  411.         else
  412.         {
  413.             System.out.println(incorrectAnswer);
  414.         }//else
  415.         System.out.println("");
  416.         //End of Question 4
  417.         //Question 5
  418.         System.out.println("Question 5. Answer is 1 ");
  419.         System.out.println("1: ");
  420.         System.out.println("2: ");
  421.         System.out.println("3: ");
  422.         System.out.println("4: ");
  423.         System.out.print("Please enter your answer here: ");
  424.         menuChoice = keyboard.nextInt();
  425.         if (menuChoice == questionFiveAnswer)
  426.         {
  427.             System.out.println(correctAnswer);
  428.             hardScore+=15;
  429.         }//if
  430.         else
  431.         {
  432.             System.out.println(incorrectAnswer);
  433.         }//else
  434.         System.out.println("");
  435.         //End of Question 5
  436.         //End of Quiz
  437.         //Summary
  438.         System.out.println("Your final score for this section is: " + hardScore);
  439.         System.out.println("You have reached the end of the hard section of the quiz.\n");
  440.         System.out.println("From here you can choose to go to:");
  441.         System.out.println("1: Main Menu\t\t2: Quiz Menu");
  442.         System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  443.         System.out.print("What would you like to do? ");
  444.         menuChoice = keyboard.nextInt();
  445.         switch (menuChoice)
  446.         {
  447.             case 1: menuTopic();
  448.                     break;
  449.             case 2: mobileGamesQuizMenu();
  450.                     break;
  451.             default: mobileGamesQuizMenu();
  452.         }//switch
  453.         //End of Quiz
  454.         //End of hard difficulty section
  455.     }//mobileGamesQuizHard
  456.  
  457.     public static void mobileGamesTrainingMenu()
  458.     {
  459.         System.out.println("Welcome to the Mobile Games Tutorial!");
  460.         System.out.println("What difficultly level would you like help with?");
  461.         System.out.println("1: Easy");
  462.         System.out.println("2: Medium");
  463.         System.out.println("3: Hard");
  464.         System.out.println("4: Back to Mobile Games Menu\t\t5: Back to Topic List");
  465.         System.out.println("If a non-valid choice is entered you will be returned to this menu.");
  466.         System.out.print("What would you like to do? ");
  467.         menuChoice = keyboard.nextInt();
  468.         System.out.println("");
  469.         switch (menuChoice)
  470.             {
  471.                 case 1:
  472.                     mobileGamesTrainingEasy();
  473.                     break;
  474.                 case 2:
  475.                     mobileGamesTrainingMedium();
  476.                     break;
  477.                 case 3:
  478.                     mobileGamesTrainingHard();
  479.                     break;
  480.                 case 4:
  481.                     mobileGamesMenu();
  482.                     break;
  483.                 case 5:
  484.                     menuTopic();
  485.                     break;
  486.                 default:
  487.                     mobileGamesTrainingMenu();
  488.             }//switch
  489.         }//mobileGamesTrainingMenu
  490.  
  491.     public static void mobileGamesTrainingEasy()
  492.     {
  493.         System.out.println("Easy Tutorial Section");
  494.         System.out.println("This is the tutorial where you can learn about mobile games. You will be tested on it in quizzes after.\n");
  495.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  496.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  497.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  498.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  499.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  500.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis\n ");
  501.         //Summary
  502.         System.out.println("You have reached the end of the easy section of the tutorial.\n");
  503.         System.out.println("From here you can choose to go to:");
  504.         System.out.println("1: Easy Quiz\t\t2: Tutorial Menu");
  505.         System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  506.         System.out.print("What would you like to do? ");
  507.         System.out.println("");
  508.         menuChoice = keyboard.nextInt();
  509.         switch (menuChoice)
  510.         {
  511.             case 1: mobileGamesQuizEasy();
  512.                     break;
  513.             case 2: mobileGamesTrainingMenu();
  514.                     break;
  515.             default:mobileGamesTrainingMenu();
  516.         }//switch
  517.     }//mobileGamesTrainingEasy
  518.  
  519.     public static void mobileGamesTrainingMedium()
  520.     {
  521.         System.out.println("Medium Tutorial Section");
  522.         System.out.println("This is the tutorial where you can learn about mobile games. You will be tested on it in quizzes after.\n");
  523.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  524.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  525.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  526.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  527.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  528.         System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis\n ");
  529.         //Summary
  530.         System.out.println("You have reached the end of the medium section of the tutorial.\n");
  531.         System.out.println("From here you can choose to go to:");
  532.         System.out.println("1: Medium Quiz\t\t2: Tutorial Menu");
  533.         System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  534.         System.out.print("What would you like to do? ");
  535.         System.out.println("");
  536.         menuChoice = keyboard.nextInt();
  537.         switch (menuChoice)
  538.         {
  539.             case 1: mobileGamesQuizMedium();
  540.                     break;
  541.             case 2: mobileGamesTrainingMenu();
  542.                     break;
  543.             default:mobileGamesTrainingMenu();
  544.         }//switch
  545.     }//mobileGamesTrainingMedium
  546.  
  547.     public static void mobileGamesTrainingHard()
  548.     {
  549.         System.out.println("Medium Tutorial Section");
  550.                 System.out.println("This is the tutorial where you can learn about mobile games. You will be tested on it in quizzes after.\n");
  551.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  552.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  553.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  554.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  555.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis ");
  556.                 System.out.println("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum mattis dapibus nisl eu ornare. Vivamus hendrerit eros quis\n ");
  557.                 //Summary
  558.                 System.out.println("You have reached the end of the medium section of the tutorial.\n");
  559.                 System.out.println("From here you can choose to go to:");
  560.                 System.out.println("1: Hard Quiz\t\t2: Tutorial Menu");
  561.                 System.out.println("If a non-valid choice is entered you will be returned to the quiz menu.");
  562.                 System.out.print("What would you like to do? ");
  563.                 System.out.println("");
  564.                 menuChoice = keyboard.nextInt();
  565.                 switch (menuChoice)
  566.                 {
  567.                     case 1: mobileGamesQuizHard();
  568.                             break;
  569.                     case 2: mobileGamesTrainingMenu();
  570.                             break;
  571.                     default:mobileGamesTrainingMenu();
  572.                 }//switch
  573.     }//mobileGamesTrainingHard
  574.  
  575.     public static void menuTopic()
  576.     {
  577.         System.out.println("Welcome to our Information System on Video Games!");
  578.         System.out.println("This is the list of topics available: ");
  579.         System.out.println("1. Xbox Games");
  580.         System.out.println("2. Wii Games");
  581.         System.out.println("3. PS3 Games");
  582.         System.out.println("4. PC Games");
  583.         System.out.println("5. Classic Games");
  584.         System.out.println("6. Mobile Games");
  585.         System.out.println("7. DS Games");
  586.         System.out.println("8. What kind of gamer are you quiz");
  587.         System.out.println("9. Exit the System");
  588.         System.out.println("If a non-valid choice is entered system will exit.");
  589.         System.out.print("What would you like to do? ");
  590.         menuChoice = keyboard.nextInt();
  591.         System.out.println("");
  592.         switch (menuChoice)
  593.         {
  594.             case 1:
  595.  
  596.             break;
  597.             case 2:
  598.  
  599.             break;
  600.             case 3:
  601.  
  602.             break;
  603.             case 4:
  604.  
  605.             break;
  606.             case 5:
  607.  
  608.             break;
  609.             case 6:
  610.                 mobileGamesMenu();
  611.             break;
  612.             case 7:
  613.  
  614.             break;
  615.             case 8:
  616.  
  617.             break;
  618.             case 9:
  619.                 exitSystem();
  620.             break;
  621.             default:
  622.                 exitSystem();
  623.         }//switch
  624.     }//menuTopic
  625.  
  626.     public static void exitSystem()
  627.     {
  628.         System.exit(0);
  629.     }//exitSystem
  630.  
  631.     public static void main(String[] args)
  632.     {
  633.         menuTopic();
  634.     }//main
  635. }//class
  636.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement