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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply