Advertisement
Guest User

Halp.exe

a guest
Apr 26th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. import java.util.*;
  2. /**
  3. * Write a description of class start here.
  4. *
  5. * @author (your name)
  6. * @version (a version number or a date)
  7. */
  8. public class start
  9. {
  10. // instance variables - replace the example below with your own
  11. private int x;
  12. ceo bonus = new ceo();
  13. VpofBusinessDevelopment bonus1 = new VpofBusinessDevelopment();
  14. DirectorofTechnology bonus4 = new DirectorofTechnology();
  15. PresidentofConsumerProduct bonus3 = new PresidentofConsumerProduct();
  16. VpofGovernmentProducts bonus2 = new VpofGovernmentProducts();
  17. /**
  18. * Constructor for objects of class start
  19. */
  20. public start()
  21. {
  22.  
  23. }
  24.  
  25. public void whatisthebusiness()
  26. {
  27. Scanner whatbus = new Scanner(System.in);
  28. System.out.println("What is their position");
  29. System.out.println("Type /help for the options");
  30. String thebus = whatbus.nextLine();
  31. if(thebus.equalsIgnoreCase("/help")){
  32. System.out.println("CEO");
  33. System.out.println("Vp of Business Development");
  34. System.out.println("Director of Technology");
  35. System.out.println("President of Consumer Products");
  36. System.out.println("Vp of Government Relations");
  37. System.out.println("Would you like to input your position now?");
  38. String gethelped = whatbus.nextLine();
  39. if(gethelped.equalsIgnoreCase("yes")){
  40. whatisthebusiness();
  41. }
  42. else if(gethelped.equalsIgnoreCase("no")){
  43. System.out.println("");
  44. }
  45. else{
  46. System.out.println("ummm sorry i dont understand chai-ness");
  47. }
  48.  
  49. }
  50. else if(thebus.equalsIgnoreCase("CEO")){
  51. System.out.println("Please Fill out the question below");
  52. bonus.findbonus();
  53. }
  54. else if(thebus.equalsIgnoreCase("VP of Business Development")){
  55. System.out.println("Please Fill out the question below");
  56. bonus1.findbonus();
  57. }
  58. else if(thebus.equalsIgnoreCase("VP of Government Relations")){
  59. System.out.println("Please Fill out the question below");
  60. bonus2.findbonus();
  61. }
  62. else if(thebus.equalsIgnoreCase("President of Consumer Products")){
  63. System.out.println("Please Fill out the question below");
  64. bonus3.findbonus();
  65. }
  66. else if(thebus.equalsIgnoreCase("Director of Technology")){
  67. System.out.println("Please Fill out the question below");
  68. bonus4.findbonus();
  69. }
  70. else{
  71. System.out.println("Sorry, I didnt get that. Would you like to try again ");
  72. String gethelped1 = whatbus.nextLine();
  73. if(gethelped1.equalsIgnoreCase("yes")){
  74. whatisthebusiness();
  75. }
  76. else if(gethelped1.equalsIgnoreCase("no")){
  77. System.out.println("ayte bai");
  78. }
  79. else{
  80. System.out.println("ummm sorry i dont understand chai-nesss");
  81. }
  82. }
  83.  
  84.  
  85.  
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement