-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNokia.java
296 lines (267 loc) · 9.74 KB
/
Nokia.java
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
import java.util.Scanner;
public class Nokia{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
System.out.println("Enter 1 to 13 to access menu");
System.out.print("1. Phonebook\n2. Messages\n3. Chat\n4. Call register\n5. Tones\n6. Settings\n7. Call divert\n8. Games\n9. Calculator\n10. Reminders\n11. Clock\n12. Profiles\n13. SIM services\n");
int menu = scanner.nextInt();
switch(menu){
case 1:
System.out.println("Phonebook");
System.out.println("1. Search\n2. Service Nos.\n3. Add name\n4. Erase\n5. Edit\n6. Assign tone\n7. Send b'card\n8. Options\n9. Speed dials\n10. Voice tags");
System.out.println("Enter 1 to 10 to access Phonebook");
int phonebook = scanner.nextInt();
switch(phonebook){
case 1: System.out.println("Search");
break;
case 2: System.out.println("Service Nos.");
break;
case 3: System.out.println("Add name");
break;
case 4: System.out.println("Erase");
break;
case 5: System.out.println("Edit");
break;
case 6: System.out.println("Assign tone");
break;
case 7: System.out.println("Send b'card");
break;
case 8: System.out.println("Options");
System.out.println("1. Type of view\n2. Memory status");
System.out.println("Enter 1 or 2 to access Options");
int options = scanner.nextInt();
switch(options){
case 1: System.out.println("Type of view");
break;
case 2: System.out.println("Memory");
break;}
case 9: System.out.println("Speed dials");
break;
case 10: System.out.println("Voice tags");
break;}
case 2:
System.out.println("Messages");
System.out.println("1. Write messages\n2. Inbox\n3. Outbox\n4. Picture messages\n5. Templates\n6. Smileys\n7. Message settings\n8. Info services\n9. Voice mailbox number\n10. Service command editor");
System.out.println("Enter 1 to 10 to access Messsages");
int messages = scanner.nextInt();
switch(messages){
case 1: System.out.println("Write messages");
break;
case 2: System.out.println("Inbox");
break;
case 3: System.out.println("Outbox");
break;
case 4: System.out.println("Picture messgaes");
break;
case 5: System.out.println("Templates");
break;
case 6: System.out.println("Smileys");
break;
case 7: System.out.println("Message settings");
System.out.println("1. Set 1\n2. Memory status");
System.out.println("Enter 1 or 2 to access Message settings");
int messageSettings = scanner.nextInt();
switch(messageSettings){
case 1: System.out.println("Set 1");
System.out.println("1. Message centre\n2. Message sent as\n3. Message validity");
System.out.println("Enter 1 to 3 to access Set 1");
int set1 = scanner.nextInt();
switch(set1){
case 1: System.out.println("Message center");
break;
case 2: System.out.println("Message sent as");
break;
case 3: System.out.println("Message validity"); }
break;
case 2: System.out.println("Common");
System.out.println("1. Delivery reports\n2. Reply via same center\n3. Character support");
System.out.println("Enter 1 to 3 to access Common");
int common = scanner.nextInt();
switch(common){
case 1: System.out.println("Delivery reports");
break;
case 2: System.out.println("Reply via same center");
break;
case 3: System.out.println("Character support");
break;}
break;}
case 8: System.out.println("Info services");
break;
case 9: System.out.println("Voice mailbox");
break;
case 10: System.out.println("Service command editor");
break;}
case 3:
System.out.println("Chat");
int chat = scanner.nextInt();
break;
case 4:
System.out.println("Call register");
System.out.println("1. Missed calls\n2. Received calls\n3. Dialled calls\n4. Erase recent calls\n5. Show calls' duration\n6. Show call cost\n7. Call cost settings\n8. Prepaid cost");
System.out.println("Enter 1 to 8 to access Call register");
int callRegister = scanner.nextInt();
switch(callRegister){
case 1: System.out.println("Missed calls");
break;
case 2: System.out.println("Received calls");
break;
case 3: System.out.println("Dialled calls");
break;
case 4: System.out.println("Erase recent calls");
break;
case 5: System.out.println("Show calls duration");
System.out.println("1. Last call duration\n2. All calls' duration\n3. Received calls' duration\n4. Dialled calls' duration\n5. Clear timers");
System.out.println("Enter 1 to 5 to access Calls duration");
int callDuration = scanner.nextInt();
switch(callDuration){
case 1: System.out.println("Last call duration");
break;
case 2: System.out.println("All calls' duration");
break;
case 3: System.out.println("Received calls' duration");
break;
case 4: System.out.println("Dialled calls' duration");
break;
case 5: System.out.println("Clear timers");
break;}
break;
case 6: System.out.println("Show call cost");
System.out.println("1. Last call cost\n2. All calls' cost\n3. Cear counters");
System.out.println("Enter 1 or 2 to access Call costs");
int callCosts = scanner.nextInt();
switch(callCosts){
case 1: System.out.println("Last call cost");
break;
case 2: System.out.println("All calls' cost");
break;}
break;
case 7: System.out.println("Call cost settings");
System.out.println("1. Call cost limit\n2. Show costs in");
System.out.println("Enter 1 or 2 to access Call costs settings");
int callCostSettings = scanner.nextInt();
switch(callCostSettings){
case 1: System.out.println("Call cost limit");
break;
case 2: System.out.println("Show costs in");
break;}
break;
case 8: System.out.println("Prepaid cost");
break;}
case 5:
System.out.println("Tones");
System.out.println("1. Ringing tone\n2. Ringing volume\n3. Incoming alert\n4. Composer\n5. Message alert tone\n6. Keypad tones\n7. Warming and game tones\n8. Vibrating alert\n9. Screen saver");
System.out.println("Enter 1 to 9 to access Tones");
int tones = scanner.nextInt();
switch(tones){
case 1: System.out.println("Ringing tone");
break;
case 2: System.out.println("Ringing volume");
break;
case 3: System.out.println("Incoming alert");
break;
case 4: System.out.println("Composer");
break;
case 5: System.out.println("Message alert tone");
break;
case 6: System.out.println("Keypad tones");
break;
case 7: System.out.println("Warning and game tones");
break;
case 8: System.out.println("Vibrating alert");
break;
case 9: System.out.println("Screen saver");
break;}
case 6:
System.out.println("Settings");
System.out.println("1. Call settings\n2. Phone settings\n3. Security settings\n4. Restore factory settings");
System.out.println("Enter 1 to 4 to access Settings");
int settings = scanner.nextInt();
switch(settings){
case 1: System.out.println("Call settings");
System.out.println("1.Automatic redial\n2. Speed dialling\n3. Call waiting options\n4. Own number sending\n5. Phone line in use\n6. Automatic answer");
System.out.println("Enter 1 to 6 to access Calls settings");
int callSettings = scanner.nextInt();
switch(callSettings){
case 1: System.out.println("Automatic redial");
break;
case 2: System.out.println("Speed dialling");
break;
case 3: System.out.println("Call waiting options");
break;
case 4: System.out.println("Own number sending");
break;
case 5: System.out.println("Phone line in use");
break;
case 6: System.out.println("Automatic answer");
break;}
case 2: System.out.println("Phone settings");
System.out.println("1. Language\n2. Cell info display\n3. Welcome note\n4. Network selection\n5. Confirm SIM service action");
System.out.println("Enter 1 to 5 to access Phone settings");
int phoneSettings = scanner.nextInt();
switch(phoneSettings){
case 1: System.out.println("Language");
break;
case 2: System.out.println("Cell info display");
break;
case 3: System.out.println("Welcome note");
break;
case 4: System.out.println("Network selection");
break;
case 5: System.out.println("Confirm SIM service action");
break;}
case 3: System.out.println("Security settings");
System.out.println("1. PIN code request\n2. Call barring service\n3. Fixed dialling\n4. Closed other group\n5. Phone security\n6. Change access code");
System.out.println("Enter 1 to 6 to access Security settings");
int securitySettings = scanner.nextInt();
switch(securitySettings){
case 1: System.out.println("PIN code request");
break;
case 2: System.out.println("Call barring service");
break;
case 3: System.out.println("Fixed dialling");
break;
case 4: System.out.println("Closed other group");
break;
case 5: System.out.println("Phone security");
break;
case 6: System.out.println("Change access code");
break;}
case 4: System.out.println("Restore factory settings");
break;}
case 7:
System.out.println("Call divert");
int callDivert = scanner.nextInt();
case 8:
System.out.println("Games");
int games = scanner.nextInt();
case 9:
System.out.println("Calculaotr");
int calculator = scanner.nextInt();
case 10:
System.out.println("Reminders");
int reminders = scanner.nextInt();
case 11:
System.out.println("Clock");
System.out.println("1. Alarm clock\n2. Clock settings\n3. Date settings\n4. Stop watch\n5. Countdown timer\n6. Auto update");
System.out.println("Enter 1 to 6 to access Clock");
int clock = scanner.nextInt();
switch(clock){
case 1: System.out.println("Alarm clock");
break;
case 2: System.out.println("Clock settings");
break;
case 3: System.out.println("Date settings");
break;
case 4: System.out.println("Countdown timer");
break;
case 5: System.out.println("Auto update");
break;}
case 12:
System.out.println("Profiles");
int profiles = scanner.nextInt();
case 13:
System.out.println("SIM services");
int simServices = scanner.nextInt();
}
}
}