blob: 7ad3903f6a3bde52670565067824b35c64906134 (
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
|
Lab 5 Text File
---------------
9a -
Section 10.5 Learn by Doing Exercises output -
Enter student 1's score: 76
Enter student 2's score: 90
Enter student 3's score: 57
Enter student 4's score: 92
Enter student 5's score: 56
Enter student 6's score: 61
Enter student 7's score: 60
Enter student 8's score: 87
Enter student 9's score: 37
Enter student 10's score: 100
Student 1's grade: C
Student 2's grade: B
Student 3's grade: F
Student 4's grade: A
Student 5's grade: F
Student 6's grade: F
Student 7's grade: F
Student 8's grade: B
Student 9's grade: F
Student 10's grade: A
Class average: 71.6
2 students got A's
2 students got B's
1 students got C's
0 students got D's
5 students got F's
9b -
Section 10.6 Learn by Doing Exercises output -
Welcome to the 10 scores to grades program.
Please enter student 1's score: 97
Please enter student 2's score: 74
Please enter student 3's score: 78
Please enter student 4's score: 48
Please enter student 5's score: 34
Please enter student 6's score: 96
Please enter student 7's score: 32
Please enter student 8's score: 87
Please enter student 9's score: 10
Please enter student 10's score: 70
Student 1's final grade: A
Student 2's final grade: D
Student 3's final grade: C
Student 4's final grade: F
Student 5's final grade: F
Student 6's final grade: A
Student 7's final grade: F
Student 8's final grade: B
Student 9's final grade: F
Student 10's final grade: D
Class average: 62.6
2 students got A's
1 students got B's
1 students got C's
2 students got D's
4 students got F's
10a -
9.4 Learn by Doing Exercises output -
Please enter your first name: James
Please enter your last name: Lawrance
Lawrance, James
10b -
9.5 Learn by Doing Exercises output 1-
Welcome to the string first six character comparison program.
Please enter your first string (at least six characters)
Halloween!
Please enter your second string (at least six characters)
Halloween?
The first six characters of your two strings are the same
output 2 -
Welcome to the string first six character comparison program.
Please enter your first string (at least six characters)
mmmJames
Please enter your second string (at least six characters)
mmmmJames
The first six characters of your two strings are different.
|