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
|
//////////////////////////////////////////////
// RUNS FOR PROBLEM #2 ON PAGE 337 ARE BELOW
//////////////////////////////////////////////
============================================
Basic integer sorting from file
(with smallest & greatest integer found)
============================================
Input file name (including extension): Integers.txt
The smallest number is: 23
The largest number is: 2021
The numbers in order from smallest to largest are :
23, 33, 44, 120, 234, 340, 501, 530, 567, 2021,
C:\Users\eclip\Source\Repos\cst116-lab9-JosephTenEyck\Debug\CST116F2021-Lab9.exe (process 6868) 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 . . .
//////////////////////////////////////////////
// RUNs FOR PROBLEM #3 ON PAGE 337 ARE BELOW
//////////////////////////////////////////////
============================================
Basic text file reader
(with line counter and character counter)
=============================================
Input file name (including extension): TextFile.text
ERROR: Unable to open file with name 'TextFile.text'
C:\Users\eclip\Source\Repos\cst116-lab9-JosephTenEyck\Debug\CST116F2021-Lab9.exe (process 8816) exited with code 1.
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 . . .
============================================
Basic text file reader
(with line counter and character counter)
=============================================
Input file name (including extension): TextFile.txt
1 This is the first sentence, hello. [34]
2 This is the second sentence, awesome! [37]
3 This is the third sentence, it's a doozy. [41]
4 This is the fourth sentence, lovely? [36]
5 This is the fifth sentence, bye [31]
C:\Users\eclip\Source\Repos\cst116-lab9-JosephTenEyck\Debug\CST116F2021-Lab9.exe (process 11800) 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 . . .
//////////////////////////////////////////////
// RUNS FOR PROBLEM #4 ON PAGE 337 ARE BELOW
//////////////////////////////////////////////
~~~~~~~~~~~~~~~~~~~~~~~~~~
Basic database program
~~~~~~~~~~~~~~~~~~~~~~~~~~
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 4
Name (last, first) Phone Number Birthday
------------------------------------------------------------------------------------
Clackin, Clayton 635-254-1458 2/23/1999
Falcon, Scarlett 636-985-6742 10/17/1975
Megadude, Todd 555-123-4567 11/24/1990
Pies, Sherri 321-987-6542 1/19/2005
Pizzaguy, Tony 503-928-6666 5/21/2010
Strangelove, Breanna 666-321-9856 6/18/1804
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 1
Enter the person's first name (case sensitive): Todd
Enter the person's last name (case sensitive): Megadude
~~~~
First name: Todd
Last name: Megadude
Phone number: 555-123-4567
Birthday: 11/24/1990
~~~~
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 2
Enter first name (no spaces): Katie
Enter last name (no spaces): Dutch
Enter phone number (ex: 555-123-4567): 552-180-9623
Enter birthday mm/dd/yyyy (ex: 1/26/1996): 2/8/1950
~~ ~~
Data entered successfully!
~~ ~~
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 4
Name (last, first) Phone Number Birthday
------------------------------------------------------------------------------------
Clackin, Clayton 635-254-1458 2/23/1999
Dutch, Katie 552-180-9623 2/8/1950
Falcon, Scarlett 636-985-6742 10/17/1975
Megadude, Todd 555-123-4567 11/24/1990
Pies, Sherri 321-987-6542 1/19/2005
Pizzaguy, Tony 503-928-6666 5/21/2010
Strangelove, Breanna 666-321-9856 6/18/1804
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 3
Enter the peron's first name (case sensitive): Katie
Enter the peron's last name (case sensitive): Dutch
Person not found.
---------------------------------------
What info would you like to change?
---------------------------------------
1. First name
2. Last name
3. Phone number
4. Birthday
Menu choice: 2
Enter new last name (no spaces): Zenith
Change successful!
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 4
Name (last, first) Phone Number Birthday
------------------------------------------------------------------------------------
Clackin, Clayton 635-254-1458 2/23/1999
Falcon, Scarlett 636-985-6742 10/17/1975
Megadude, Todd 555-123-4567 11/24/1990
Pies, Sherri 321-987-6542 1/19/2005
Pizzaguy, Tony 503-928-6666 5/21/2010
Strangelove, Breanna 666-321-9856 6/18/1804
Zenith, Katie 552-180-9623 2/8/1950
==============================
What would you like to do?
==============================
1. Find person's info
2. Add person's info
3. Edit a person's info
4. Display all records
5. Exit
Menu choice: 5
~~ ~~
Output file successfully written!
~~ ~~
~ Goodbye! ~
C:\Users\eclip\Source\Repos\cst116-lab9-JosephTenEyck\Debug\CST116F2021-Lab9.exe (process 15744) 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 . . .
|