Page 1 of 1

I ONLY NEED PARTS C AND D OBJECTIVES: ASSIGNMENT TASKS: with open('F:\\python\\grades.txt', mode='w') as grades: Grades

Posted: Sat May 14, 2022 7:52 pm
by answerhappygod
I ONLY NEED PARTS C AND D
OBJECTIVES:
ASSIGNMENT TASKS:
with open('F:\\python\\grades.txt',
mode='w') as grades:
Grades
90
80
70
Average Grade:80.0
This text file contains the following
info:
Bob Jones 86 75 84
Sue Smith 99
77 88
Karen Doe 83
88 92
Jones
Bob
86 75
84
245
81.67 B
Smith
Sue
99 97
88
284
94.67 A
Doe
Karen 83
78 72
233 77.67
C
Jones Bob 86 75 84 245
81.66666666666667 B
Smith Sue 99 97 88 284
94.66666666666667 A
Doe Karen 83 78 72 233
77.66666666666667 C
TRY to format your output file in the
same format as screen. You have a couple of options to accomplish
this operation.
Jones
Bob
86
75
84
245
81.67
B
Smith
Sue
99
97
88
284
94.67
A
Doe
Karen
83
78
72
233
77.67
C
Bob
Jones
86
75
84
Sue
Smith
99
97
88
Karen
Doe
83
78
72