blob: 3d0ce4238c637a8a2600d289b93d1169555195c3 (
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
|
These are the text outputs from the Lab3 Exercises Author: Benjamin Schroeder
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Output from 6.4 p126
0
2
3
2
1
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 17068) 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 . . .
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Corrections from 7.1 1 thru 6 p148
//
// int int_exp1 = 0;
// int int_exp2 = 1;
// char char_exp = 'B';
//
// int_exp1 >= int_exp2; // put great than sign before = to correct it
// int_exp1 == int_exp2; // made it a == sign
// int_exp1 != int_exp2; // explamation should be before =
// char_exp == 'A'; // should have single quote for char
// int_exp1 > char_exp; // trying to compare an int to a char
// int_exp1 < 2 && int_exp1 > -10 // needs to nhave the variable in the second comparison
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 7.2_1 p155 (several runs)
(run 1)
Bank Membership Staus
How many accounts does the member have? (1 or 2): 2
Enter total amount the member has in all accounts (dollars): 9000
Copper Member
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 9592) 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 . . .
(run 2)
Bank Membership Staus
How many accounts does the member have? (1 or 2): 1
Enter total amount the member has in all accounts (dollars): 45000
Platinum Member
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 11708) 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 . . .
(run3)
Bank Membership Staus
How many accounts does the member have? (1 or 2): 2
Enter total amount the member has in all accounts (dollars): 12000
Gold Member
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 4268) 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 . . .
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 7.4_1 p161
Student Grade Program
-Main Menu-
1. Enter name
2. Enter test scores
3. Display test scores
4. Exit
Please enter your choice from the list above: 2
Enter test scores
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 2840) 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 . . .
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 7.10_2 p168
Enter amount of loan requested (between $100 and $1000): 250
Enter interest Rate between 1 and 18 %: 2.5
Loan requested: $250
Interest Rate: 2.5%
Interest and fees: $26.25
C:\Users\Lenovo\Source\Repos\cst116-lab3-BensProgramma\x64\Debug\CST116F2021-Lab3.exe (process 5524) 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 . . .
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 8.2_1 p177 Count down even integer from user input integer
give me a integer between 0 nd 50: 49
48
46
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
C:\Users\Lenovo\source\repos\CST116_Lab3_Schroeder\Debug\CST116_Lab3_Schroeder.exe (process 20668) 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 . . .
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 8.3_1 p179 Count down by even integers w/ do-while loop to verify valid input
give me a integer between 0 nd 50: 55
give me a integer between 0 nd 50: 49
48
46
44
42
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
C:\Users\Lenovo\source\repos\CST116_Lab3_Schroeder\Debug\CST116_Lab3_Schroeder.exe (process 11492) 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 . . .
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 8.4_2 p184
Enter an integer for the number of stars in the base of the triangle: 11
* * * * * * * * * * *
* * * * * * * * * *
* * * * * * * * *
* * * * * * * *
* * * * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*
C:\Users\Lenovo\source\repos\CST116_Lab3_Schroeder\Debug\CST116_Lab3_Schroeder.exe (process 10272) 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 . . .
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Run from 8.10_3 p192
Enter the number you wish the fibonacci sequence to go to (positive integer): 615
Fibonacci Series (no greater than 615):
0
1
1
2
3
5
8
13
21
34
55
89
144
233
377
610
C:\Users\Lenovo\source\repos\CST116_Lab3_Schroeder\Debug\CST116_Lab3_Schroeder.exe (process 19152) 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 . . .
|