aboutsummaryrefslogtreecommitdiff
path: root/CST116F2021-Lab5/CONSOLE OUTPUT.txt
blob: df2759f9bd5641d44dbb766dca079e7c6acc956b (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
This file contains the console output for each program.

10.5 LBD-Ex #1:

Enter score #1 of 10: 99.54
Score: 99.54   Grade: A
Enter score #2 of 10: 73.85
Score: 73.85   Grade: D
Enter score #3 of 10: 68.76
Score: 68.76   Grade: D
Enter score #4 of 10: 82.47
Score: 82.47   Grade: C
Enter score #5 of 10: 63.98
Score: 63.98   Grade: F
Enter score #6 of 10: 87.61
Score: 87.61   Grade: B
Enter score #7 of 10: 85.0
Score: 85   Grade: B
Enter score #8 of 10: 52.84
Score: 52.84   Grade: F
Enter score #9 of 10: 96.2
Score: 96.2   Grade: A
Enter score #10 of 10: 84.15
Score: 84.15   Grade: B

The average score is: 79.44%
Distribution of achieved grades:
A: 2
B: 3
C: 1
D: 2
F: 2

C:\Users\jorda\Source\Repos\cst116-lab5-JordanHT-OIT\Debug\CST116F2021-Lab5.exe (process 1424) 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 . . .



10.6 LBD-Ex #1:

Enter score #1 of 10: 99
Enter score #2 of 10: 94.65
Enter score #3 of 10: 91.24
Enter score #4 of 10: 58.23
Enter score #5 of 10: -65

Error: Score cannot be negative
Enter score #5 of 10: 65.0
Enter score #6 of 10: 79.23
Enter score #7 of 10: 80.234
Enter score #8 of 10: 23.5
Enter score #9 of 10: 83.7
Enter score #10 of 10: 94.3

The average score is: 76.9084
The number of assigned grades are as follows: A - 3,   B - 1,   C - 3,   D - 1,   F - 2
The individual scores are as follows:
Student 1 scored 99 (A)
Student 2 scored 94.65 (A)
Student 3 scored 91.24 (B)
Student 4 scored 58.23 (F)
Student 5 scored 65 (D)
Student 6 scored 79.23 (C)
Student 7 scored 80.234 (C)
Student 8 scored 23.5 (F)
Student 9 scored 83.7 (C)
Student 10 scored 94.3 (A)

C:\Users\jorda\Source\Repos\cst116-lab5-JordanHT-OIT\Debug\CST116F2021-Lab5.exe (process 10688) 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 . . .



10.7 LBD-Ex #2

Please enter your first name: Jordan
Please enter your last name: Harris-Toovy

Your full name is: Jordan, Harris-Toovy

C:\Users\jorda\Source\Repos\cst116-lab5-JordanHT-OIT\Debug\CST116F2021-Lab5.exe (process 1176) 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 . . .



10.8 Ex #7

---[Run 1]---

Please enter a string (alphanumeric and +-,.): Hello!
Please enter another string: Hello!

Enter the number of characters to compair (left to right): 5

The first 5 characters match.

C:\Users\jorda\Source\Repos\cst116-lab5-JordanHT-OIT\Debug\CST116F2021-Lab5.exe (process 1792) 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 a string (alphanumeric and +-,.): THIS_IS_A_TEST
Please enter another string: THIS_IS_A_DIFFERENCE

Enter the number of characters to compair (left to right): 12

There is a mismatch within the fisrt 12 characters.

C:\Users\jorda\Source\Repos\cst116-lab5-JordanHT-OIT\Debug\CST116F2021-Lab5.exe (process 10840) 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 . . .