aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab9/CONSOLE_OUTPUT.txt
blob: 71654fb74819ebf145564237aab76711cc6eba86 (plain) (blame)
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
This file contains test information for this lab

16a - 11.14 Programming Exercises #2:

Enter name of data file: nope
Invalid file name
Enter name of data file: 1114_2_datafile
The smallest number in the file is: 23
The largest number in the file is: 2021
The file contents are:
23 33 44 120 234 340 501 530 567 2021

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 17276) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .



16a - 11.14 Programming Exercises #3 (NOTE: Most of the code is shared between #2 and #3):

Enter name of data file: 1114_3_datafile

1)      He has a few screws loose.      (26 chars)
2)      Barking dogs and screaming toddlers have the unique ability to turn friendly neighbors into cranky enemies.    (107 chars)
3)      Mushrooms are a kind of fungus. (31 chars)
4)      In that instant, everything changed.    (36 chars)
5)      The toddler's endless tantrum caused the entire plane anxiety.  (62 chars)
6)      He decided water-skiing on a frozen lake wasn't a good idea.    (60 chars)
7)      You have every right to be angry, but that doesn't give you the right to be mean.       (81 chars)
8)      As the years pass by, we all know owners look more and more like their dogs.    (76 chars)
9)      Tom didn't sound as if he was in trouble.       (41 chars)
10)     The door slammed on the watermelon.     (35 chars)

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 7140) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .



16a - 11.14 Programming Exercises #4:

---[Test 1]---

Personnel manifest explorer MK1
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
1
Chose search method:
1)      First name and last name
2)      Phone number
3)      Cancel
1
Enter the first name (case sensitive): Ray
Enter the last name (case sensitive): Mccartney
Match found at index 11:
Ray                      Mccartney                425-788-2340             2002-09-03

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
7
Invalid input; enter again: 5

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 15476) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .


---[Test 2]---

Personnel manifest explorer MK1
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
1
Chose search method:
1)      First name and last name
2)      Phone number
3)      Cancel
2
Enter the phone number in the format 012-345-6789: 706-820-0848
Match found at index 12:
Jannat                   Kline                    706-820-0848             1994-04-01

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
3
Enter 1 if index is known, or 2 to find a person: 1
Enter index: 12
Select element to change:
1)      First name
2)      Last name
3)      Phone number
4)      Date of birth
5)      Exit
3
Enter the phone number (format: 012-345-6789): 012-345-6789
Select element to change:
1)      First name
2)      Last name
3)      Phone number
4)      Date of birth
5)      Exit
1
Enter the first name: Test
Select element to change:
1)      First name
2)      Last name
3)      Phone number
4)      Date of birth
5)      Exit
5
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
1
Chose search method:
1)      First name and last name
2)      Phone number
3)      Cancel
1
Enter the first name (case sensitive): Test
Enter the last name (case sensitive): Kline
Match found at index 12:
Test                     Kline                    012-345-6789             1994-04-01

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
5

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 9352) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .


---[Test 3]---

Personnel manifest explorer MK1
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
4

First name               Last name                Phone number             Date of birth
════════════════════════════════════════════════════════════════════════════════════════════════════
Dionne                   Arroyo                   717-417-5576             1998-02-19
Benjamin                 Bullock                  870-533-4082             1985-11-09
Aarav                    Corbett                  586-468-0823             1991-12-14
Aniyah                   Davey                    620-947-3956             2001-03-08
Julia                    Galloway                 931-729-9938             1999-06-18
Jannat                   Kline                    706-820-0848             1994-04-01
Paisley                  Mccall                   207-865-4000             1970-03-01
Inigo                    Massey                   253-835-0873             1983-09-28
Ray                      Mccartney                425-788-2340             2002-09-03
Brady                    Merritt                  871-869-7911             1993-09-13
Odin                     Obrien                   321-783-2687             1983-01-19
Romany                   Porter                   225-261-7520             1966-05-20
Aaliyah                  Pittman                  979-258-9565             1980-12-26
Kaidan                   Smith                    423-842-7402             1987-04-24
Codey                    Whyte                    615-672-4849             1990-06-10

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
3
Enter 1 if index is known, or 2 to find a person: 2
Chose search method:
1)      First name and last name
2)      Phone number
3)      Cancel
1
Enter the first name (case sensitive): Odin
Enter the last name (case sensitive): Obrien
Match found at index 4:Select element to change:
1)      First name
2)      Last name
3)      Phone number
4)      Date of birth
5)      Exit
2
Enter the last name: Aleph
Select element to change:
1)      First name
2)      Last name
3)      Phone number
4)      Date of birth
5)      Exit
5
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
4

First name               Last name                Phone number             Date of birth
════════════════════════════════════════════════════════════════════════════════════════════════════
Odin                     Aleph                    321-783-2687             1983-01-19
Dionne                   Arroyo                   717-417-5576             1998-02-19
Benjamin                 Bullock                  870-533-4082             1985-11-09
Aarav                    Corbett                  586-468-0823             1991-12-14
Aniyah                   Davey                    620-947-3956             2001-03-08
Julia                    Galloway                 931-729-9938             1999-06-18
Jannat                   Kline                    706-820-0848             1994-04-01
Paisley                  Mccall                   207-865-4000             1970-03-01
Inigo                    Massey                   253-835-0873             1983-09-28
Ray                      Mccartney                425-788-2340             2002-09-03
Brady                    Merritt                  871-869-7911             1993-09-13
Romany                   Porter                   225-261-7520             1966-05-20
Aaliyah                  Pittman                  979-258-9565             1980-12-26
Kaidan                   Smith                    423-842-7402             1987-04-24
Codey                    Whyte                    615-672-4849             1990-06-10

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
5

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 7504) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .


---[Test 4]---

Personnel manifest explorer MK1
Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
2
Enter the first name: Test1
Enter the last name: Alpha
Enter the phone number (format: 012-345-6789): 111-111-1111
Enter the date of birth (format: yyyy-mm-dd): 1111-11-11

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
2
Enter the first name: Test2
Enter the last name: Zeta
Enter the phone number (format: 012-345-6789): 222-222-2222
Enter the date of birth (format: yyyy-mm-dd): 2222-22-22

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
4

First name               Last name                Phone number             Date of birth
════════════════════════════════════════════════════════════════════════════════════════════════════
Dionne                   Arroyo                   717-417-5576             1998-02-19
Test1                    Alpha                    111-111-1111             1111-11-11
Benjamin                 Bullock                  870-533-4082             1985-11-09
Aarav                    Corbett                  586-468-0823             1991-12-14
Aniyah                   Davey                    620-947-3956             2001-03-08
Julia                    Galloway                 931-729-9938             1999-06-18
Jannat                   Kline                    706-820-0848             1994-04-01
Paisley                  Mccall                   207-865-4000             1970-03-01
Inigo                    Massey                   253-835-0873             1983-09-28
Ray                      Mccartney                425-788-2340             2002-09-03
Brady                    Merritt                  871-869-7911             1993-09-13
Odin                     Obrien                   321-783-2687             1983-01-19
Romany                   Porter                   225-261-7520             1966-05-20
Aaliyah                  Pittman                  979-258-9565             1980-12-26
Kaidan                   Smith                    423-842-7402             1987-04-24
Codey                    Whyte                    615-672-4849             1990-06-10
Test2                    Zeta                     222-222-2222             2222-22-22

Enter desired operation:
1)      Personnel lookup
2)      Add entry
3)      Edit entry
4)      Display all records
5)      Exit program
5

C:\Users\jorda\Source\Repos\cst116-lab9-JordanHT-OIT\x64\Debug\CST116F2021-Lab9.exe (process 12408) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .