Current location - Education and Training Encyclopedia - Graduation thesis - Realization of simple shopping system with java programming
Realization of simple shopping system with java programming
Package cn.job01;

Import java.util.scanner;

Public class Lx07 {

Public static void choice() {

System.out.println ("login menu");

System.out.println(" 1 login system ");

system . out . println(" 2 exit ");

}

Static empty selection 1() {

System.out.println ("shopping management system >; Customer information ");

System.out.println(" 1 show all customer information ");

System.out.println("2 Add customer information ");

System.out.println("3 modify customer information ");

System.out.println("4 query customer information ");

}

Static empty choice 2() {

System.out.println ("shopping management system >; True feedback ");

System.out.println(" 1 Lucky Broadcast ");

System.out.println("2 lottery ");

System.out.println("3 rd birthday greetings ");

}

Public static void main(String[] args) {

choice();

Scanner input = new scanner (system. in);

System.out.println ("Please enter1or2");

int num = input . nextint();

Switches (Qty)

Case 1:

System.out.println ("main menu");

System.out.println(" 1 customer information management ");

System.out.println("2 shopping settlement ");

System.out.println("3 true feedback ");

system . out . println(" 4 logout ");

Break;

}

System.out.println ("select input number");

int num 1 = input . nextint();

Switch (num 1) {

Case 1:

choice 1();

Break;

Case 2:

System.out.println ("shopping settlement");

Break;

Case 3:

choice 2();

Break;

Case 4:

choice();

Break;

}

}

}

To modify it