-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNokiaMethodAssignment.java
More file actions
303 lines (282 loc) · 4.38 KB
/
Copy pathNokiaMethodAssignment.java
File metadata and controls
303 lines (282 loc) · 4.38 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
import java.util.Scanner;
public class NokiaMethodAssignment{
public static void main(String[] args){
menu();
}
public static void menu(){
Scanner scan = new Scanner(System.in);
System.out.println("""
NOKIA 3310 MENU
""");
System.out.print("""
Welcome to NOKIA MENU
1.Phone book
2.Messages
3.Chat
4.Call register
5.Tones
6.Settings
7.Call divert
8.Games
9.Calculator
10.Reminders
11.Clock
12.Profile
13.Sim service
0.Back to menu
""");
int menu = scan.nextInt();
switch(menu){
case 1:
System.out.print("""
Phone book
1.Search
2.Service Nos
3.Add name
4.Erase
5.Edit
6.Assign tone
7.Send b'card
8.Options
9.Speed
10.Voice tags
0.Back to menu
""");
int options = scan.nextInt();
switch(options){
case 8:
System.out.print("""
Options
1. Type of view
2. Memory status
0.Back to menu
""");
}
break;
case 2:
System.out.print("""
Message
1. Write messages
2. Inbox
3. Outbox
4. Picture messages
5. Tempates
6. Smileys
7. Message settings
8. Info service
9. Voice mailbox number
10. Service command editor
0.Back to menu
""");
int messageSettings = scan.nextInt();
switch(messageSettings){
case 7:
System.out.print("""
Message settings
1. Set
2. Common
""");
int set = scan.nextInt();
switch(set){
case 1:
System.out.print("""
Set
1. Message centre number
2. Messages sent as
3. Message validation
""");
int common = scan.nextInt();
switch(common){
case 2:
System.out.print("""
Common
1. Delivery report
2. Reply via same center
3. Character support
""");
break;
}
}
}
break;
case 3:
System.out.print("""
Empty
""");
break;
case 4:
System.out.print("""
Call register
1. Missed calls
2. Received calls
3. Dialled numbers
4. Erase recent call lists
5. Show call duration
6. Show call cost
7. Call cost settings
8. Prepaid credit
0. Back to menu
""");
int showCallDuration = scan.nextInt();
switch(showCallDuration){
case 5:
System.out.print("""
Call duration
1. Last call duration
2. All call's duration
3. Received calls duration
4. Dialled calls duration
5. Clear timers
""");
int showCallCost = scan.nextInt();
switch(showCallCost){
case 6:
System.out.print("""
Call costs
1. Last call cost
2. All calls cost
3. Clear counters
""");
int showCallSettings = scan.nextInt();
switch(showCallSettings){
case 7:
System.out.print("""
Call settings
1. Call cost limit
2. Show costs in
""");
int PrepaidCredit = scan.nextInt();
switch(PrepaidCredit){
case 8:
System.out.print("""
Empty
""");
break;
}
}
}
case 0:
menu();
break;
}
break;
case 5:
System.out.print("""
Tones
1. Ringing tone
2. Ringing volume
3. Incoming call alart
4. Composer
5. Message alartb tone
7. Keypad tones
8. Vibrating alart
9. Screen saver
""");
break;
case 6:
System.out.print("""
Settings
1. Call settings
2. Phone settings
3. Security settings
4. Restore factory settings
""");
int callSettings = scan.nextInt();
switch(callSettings){
case 1:
System.out.print("""
Call settings
1. Automatic redial
2. Speed dialing
3. Call waiting options
4. Own number sending
5. phone line in use
6. Automatic answer
""");
int phoneSettings = scan.nextInt();
switch(phoneSettings){
case 2:
System.out.print("""
Phone settings
1. Language
2. Cell info display
3. Welcome note
4. Network selection
5. Lights
6. Comfirm sim service actions
""");
int securitySettings = scan.nextInt();
switch(securitySettings){
case 3:
System.out.print("""
Security settings
1. PIN code request
2. Call barring service
3. Fixed dialling
4. Closed user group
5. Phone security
6. Change access codes
""");
int restoreFactory = scan.nextInt();
switch(restoreFactory){
case 4:
System.out.print("""
Empty
""");
break;
case 0:
menu();
break;
}
}
}
}
break;
case 7:
System.out.print("""
Emtpty
""");
break;
case 8:
System.out.print("""
Empty
""");
break;
case 9:
System.out.print("""
Empty
""");
break;
case 10:
System.out.print("""
Empty
""");
break;
case 11:
System.out.print("""
clock
1. Alarm clock
2. Clock settings
3. Date settings
4. Stopwatch
5. Countdown timer
6. Auto update of date and time
0.Back to menu
""");
break;
case 12:
System.out.print("""
Empty
""");
break;
case 13:
System.out.print("""
Empty
""");
break;
case 0:
menu();
break;
}
}
}