Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.15 KB | None | 0 0
  1. import java.util.*;
  2. public class Driver {
  3.  
  4.    
  5.     private static String username = "admin";
  6.     private static String password = "123";
  7.     static String option;
  8.  
  9.     public static void main(String[] args) {
  10.         Scanner keyboard;
  11.         Scanner scan = new Scanner(System.in);
  12.         System.out.print("Please Enter your username:");
  13.         username = scan.nextLine();
  14.         System.out.print("Please Enter your Password:");
  15.         password = scan.nextLine();
  16.        
  17.         do {
  18.         System.out.println("a)Manage Accounts");
  19.         System.out.println("b)Manage Services");
  20.         System.out.println("c)Manage Subscribe Package Item");
  21.         System.out.println("d)Manage Package Item");
  22.         System.out.println("e)Manage TV Programmes");
  23.         System.out.println("f)Generate Reports");
  24.         System.out.println("g)Logs");
  25.         System.out.println("h)Log off");
  26.         keyboard = new Scanner(System.in);
  27.         option = keyboard.nextLine();
  28.        
  29.         if (option.equals("a") || option.equals("A")) {
  30.             ManageAccount.main(null);
  31.         }
  32.         else if (option.equals("b") || option.equals("B")) {
  33.             ManageServices.main(null);
  34.         }
  35.         else if (option.equals("c") || option.equals("C")) {
  36.             manageSubscribePackageItem();
  37.         }
  38.         else if (option.equals("d") || option.equals("D")) {
  39.             managePackageItem();
  40.         }
  41.         else if (option.equals("e") || option.equals("E")) {
  42.             manageTVProgrammes();
  43.         }
  44.         else if (option.equals("f") || option.equals("F")) {
  45.             generateReports();
  46.         }
  47.         else if (option.equals("g") || option.equals("G")) {
  48.             logs();
  49.         }
  50.         else {
  51.               System.out.println("Invalid Entry!");
  52.         }
  53.         }while (option.equals("h") || option.equals("H"));
  54.     }
  55.    
  56.        
  57.         public static void manageServices() {
  58.             System.out.println("a) Add Services");
  59.             System.out.println("b) Edit Services");
  60.             System.out.println("c) Terminate Services");
  61.         }
  62.        
  63.         public static void manageSubscribePackageItem() {
  64.            
  65.         }
  66.        
  67.         public static void managePackageItem() {
  68.            
  69.         }
  70.        
  71.         public static void manageTVProgrammes() {
  72.            
  73.         }
  74.        
  75.         public static void generateReports() {
  76.            
  77.         }
  78.        
  79.         public static void logs() {
  80.            
  81.         }
  82.        
  83.         public static void logout() {
  84.            
  85.         }
  86.        
  87.        
  88.        
  89.        
  90.  
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement