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
|
This file contains the console output for the various program runs.
7a - 9.3 Learn By Doing Exercise #1:
Enter value 1: 22.22
Enter value 2: 33.33
Enter value 3: 55.55
The average of the three values is: 37.0333
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 6596) 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 . . .
7b - 9.4 Learn By Doing Exercise #1:
---[RUN 1]---
Enter the employee's salary: 25
Enter the employee's years of service: 15
For the employee's 15 years of service:
Their salary will be changed to 27.50 USD per hour
And they will receive a bonus of 4000 USD
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 840) 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]---
Enter the employee's salary: 17.50
Enter the employee's years of service: 7
For the employee's 7 years of service:
Their salary will be changed to 18.38 USD per hour
And they will receive a bonus of 2000 USD
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 7788) 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 3]---
Enter the employee's salary: 13.75
Enter the employee's years of service: 2
For the employee's 2 years of service:
Their salary will be changed to 14.02 USD per hour
And they will receive a bonus of 500 USD
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 6540) 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 . . .
7c - 9.5 Learn By Doing Exercise #1:
---[RUN 1]---
Please enter the current time:
Hours: 13
Minutes: 42
Seconds: 59
Please chose the time format to display:
1) - 24 Hour time
2) - Military time
3) - 12 Hour time (standard)
1
The time is 13:42:59
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 4876) 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]---
Please enter the current time:
Hours: 19
Minutes: 73
Seconds: 21
Invalid time
Please enter the current time:
Hours: 19
Minutes: 37
Seconds: 43
Please chose the time format to display:
1) - 24 Hour time
2) - Military time
3) - 12 Hour time (standard)
2
The time is 1937
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 12432) 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 3]---
Please enter the current time:
Hours: 17
Minutes: 51
Seconds: 39
Please chose the time format to display:
1) - 24 Hour time
2) - Military time
3) - 12 Hour time (standard)
5
Invalid mode
Please chose the time format to display:
1) - 24 Hour time
2) - Military time
3) - 12 Hour time (standard)
3
The time is 5:51:39 PM
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 3708) 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 . . .
8a - 9.13 Debugging Exercise #1:
NOTE: Since the base code is provided, and the modifications are minimal and documented in the Textual Work file, only one run should be nessary to prove the functionality of this simplpe code.
Please enter your age: 24
24! Boy are you old!
Did you know that you are at least 8760 days old?
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 13316) 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 . . .
8b - 9.14 Programming Exercise #1:
NOTE: Due to the tall aspect ratio of text, the rectangles appear taller then one might expect. The program is accurate in the number of characters tall/wide the output is.
---[RUN 1]---
Enter width and height of the rectangle:
1
1
Size too small
Enter width and height of the rectangle:
3
3
┌─┐
│ │
│ │
└─┘
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 4064) 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]---
Enter width and height of the rectangle:
11
6
┌─────────┐
│ │
│ │
│ │
│ │
│ │
└─────────┘
C:\Users\jorda\Source\Repos\cst116-lab4-JordanHT-OIT\Debug\CST116F2021-Lab4.exe (process 6872) 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 . . .
|