Advertisement
Guest User

MySystem

a guest
Feb 12th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ABETaftTicketingSyst­em {
  3. public static void main(String[] args) {
  4. String user;
  5. String pw;
  6. String se;
  7. String name;
  8. int gy;
  9. String ct;
  10. long usn;
  11. String p;
  12. String prob;
  13. String com;
  14. String em;
  15. int a = 1;
  16. Scanner r = new Scanner(System.in);
  17. Scanner j = new Scanner(System.in);
  18. while (a <1000000000) {
  19. System.out.println("­Enter the type of user you are [User or Admin]: ");
  20. user = r.nextLine();
  21. if (user.equals("User")­ || user.equals("user"))­ {
  22. System.out.println("­Enter your designation, [Student or Employee]: ");
  23. se = r.nextLine();
  24. if (se.equals("Student"­) || se.equals("student")­) {
  25. System.out.println("­Enter your name, follow this format [SN, GN MI.]: ");
  26. name = r.nextLine();
  27. System.out.println("­Enter your grade or year level: ");
  28. gy = r.nextInt();
  29. System.out.println("­Enter your course or track: ");
  30. ct = r.next();
  31. System.out.println("­Enter your USN: ");
  32. usn = r.nextLong();
  33. System.out.println("­Enter the email address where we will send the feedback or progress regarding your problem: ");
  34. em = r.next();
  35. System.out.println("­Enter the category of your problem, [Choose whether it is under hardware, software or network]: ");
  36. prob = r.next();
  37. System.out.println("­Now, tell the problem you are encountering: ");
  38. com = j.nextLine();
  39. System.out.println("­Ticket Number: "+a);
  40. a++;
  41. System.out.println("­Name: "+name);
  42. System.out.println("­Grade or Year Level: "+gy);
  43. System.out.println("­Course or Track: "+ct);
  44. System.out.println("­USN: "+usn);
  45. System.out.println("­Email Address: "+em);
  46. System.out.println("­Category of the Problem: "+prob);
  47. System.out.println("­Problem Encountered: "+com);
  48. }
  49. else if (se.equals("Employee­") || se.equals("employee"­)) {
  50. System.out.println("­Enter your name, follow this format [SN, GN MI.]: ");
  51. name = r.nextLine();
  52. System.out.println("­Enter your position: ");
  53. p = r.nextLine();
  54. System.out.println("­Enter the email address where we will send the feedback or progress regarding your problem: ");
  55. em = r.nextLine();
  56. System.out.println("­Enter the category of your problem, [Choose whether it is under hardware, software or network]: ");
  57. prob = r.nextLine();
  58. System.out.println("­Now, tell the problem encounterred: ");
  59. com = r.nextLine();
  60. System.out.println("­Ticket Number: "+a);
  61. a++;
  62. System.out.println("­Name: "+name);
  63. System.out.println("­Position: "+p);
  64. System.out.println("­Email Address: "+em);
  65. System.out.println("­Category of the Problem: "+prob);
  66. System.out.println("­Problem Encountered: "+com);
  67. }
  68. }
  69. else if (user.equals("Admin"­) || user.equals("admin")­) {
  70. System.out.println("­Enter the password: ");
  71. pw = r.next();
  72. if (pw.equals("<Kiss*Mu­na#Ako>S-E-C-R-E-T")­) {
  73. System.out.println("­Dashboard ...");
  74. }
  75. }
  76. }
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement