generated from BNU-CO452/BlueJ-Apps
/
Test7-11.txt
161 lines (145 loc) · 5.29 KB
/
Test7-11.txt
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Program.main({ });
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > buy
please enter the ID of the product you wish purchase
1
how much would you like to buy?
10
Bought 10 of Elisans Draught
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > sell
please enter the ID of the product you wish sell
1
how much would you like to sell?
5
Sold 5 of Elisans Draught
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > search
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > search
What product do you want to find?1001
ID 2: 1001 Spells for Dummies stock level: 0
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > check
ID 1: Elisans Draught stock level: 5 stock is getting low
ID 2: 1001 Spells for Dummies stock level: 0 stock is getting low
ID 3: Stun Orb stock level: 0 stock is getting low
ID 4: Mana Locator stock level: 0 stock is getting low
ID 5: Cure Minor stock level: 0 stock is getting low
ID 6: Cure Alls stock level: 0 stock is getting low
ID 7: Arcantus Venom stock level: 0 stock is getting low
ID 8: Guide to Elemental Manipulation stock level: 0 stock is getting low
ID 9: Tulaclion Remedy stock level: 0 stock is getting low
ID 10: Kitsune Repellent stock level: 0 stock is getting low
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > restock
ID 1: Elisans Draught stock level: 1005
ID 2: 1001 Spells for Dummies stock level: 1000
ID 3: Stun Orb stock level: 1000
ID 4: Mana Locator stock level: 1000
ID 5: Cure Minor stock level: 1000
ID 6: Cure Alls stock level: 1000
ID 7: Arcantus Venom stock level: 1000
ID 8: Guide to Elemental Manipulation stock level: 1000
ID 9: Tulaclion Remedy stock level: 1000
ID 10: Kitsune Repellent stock level: 1000
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice > check
********************************
App21-04: Stock Application
by Conor Briggs
********************************
Add: Add a new product
Remove: Remove an old product
Print: Print all products
Buy Buy an amount of a product
Sell Sell an amount of a product
Search Search for a product
Check Checks stock level
Restock Restocks product if the quantity is low
Quit: Quit the program
Please enter your choice >