-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWelcome.java
More file actions
73 lines (70 loc) · 3.4 KB
/
Welcome.java
File metadata and controls
73 lines (70 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import java.util.Scanner;
public class Welcome
{
public static void main(String[] args)
{
Scanner inp = new Scanner(System.in);
System.out.println("Welcome to the Wokolad Store!");
System.out.println("You have 7 options");
System.out.println(" 1 - Sale" +
"\n 2 - Add chocolate" +
"\n 3 - Change provider's info" +
"\n 4 - All chocolate information" +
"\n 5 - Display income" +
"\n 6 - Help about the program" +
"\n 7 - Quit");
System.out.println("Type a number:");
int option = inp.nextInt();
inp.nextLine();
switch(option)
{
case 1:
System.out.println("Type chocolate name:");
String sale_name = inp.nextLine();
System.out.println("Type number of chocolate:");
int sale_num = inp.nextInt();
//Function that make number of selected chocolate decreases
break;
case 2:
System.out.println("Type chocolate name:");
String add_name = inp.nextLine();
System.out.println("Type number of chocolate: ");
int add_num = inp.nextInt();
inp.nextLine();
//Function that make addition for the selected chocolate
break;
case 3:
System.out.println("Type provider's name:");
String provider_name = inp.nextLine();
System.out.println("Enter new name: ");
String provider_new_name = inp.nextLine();
System.out.println("Enter new address: ");
String provider_address = inp.nextLine();
System.out.println("Enter new location: ");
String provider_city = inp.nextLine();
System.out.println("Enter new phone: ");
String provider_phone = inp.nextLine();
//Function that changes provider's information
break;
case 4:
System.out.println("Enter chocolate name: ");
String info_name = inp.nextLine();
//Function that display info of selected chocolate
break;
case 5:
System.out.println("Посмотреть доход для продажи для определенной даты:");
//Function that displays income for a particular date
System.out.println("Посмотреть суммарную продажу для определенного шоколада:");
//Function that displays number of sales for particular chocolate
System.out.println("Посмотреть суммарную продажу для всех шоколадов");
//Function that displays all sales number for all chocolates
break;
case 6:
System.out.println("This application can register individual sales transactions, update the quantity of each chocolate sold, replenish stocks of chocolates, change supplier information for a specific chocolate and display all information about chocolate");
break;
case 7:
//Quits program
break;
}
}
}