Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: Below are instructions for Task 1 and Task 2 of this homework. Please be sure to follow these specific instructions. The grading rubric is
Note: Below are instructions for Task and Task of this homework. Please be sure to follow
these specific instructions. The grading rubric is based on these specific instructions. Your Python
script might be correct, but you receive no credit because you did not follow the instructions.
Task of : Compute and Print Grades
Download students grades from the community site, Grades.txt The file has columns:
student Index number and the average RATs, CFUs, HWs Project and Exams grades for a set of
students. Each student has an Index number that is a whole number between and and their
final grade can be computed as a percentage based on the following formula:
Grade RAT CFU HW Project Exam
Their letter grade can then be assigned based on the following grade scale:
Grade A
Grade B
Grade C
Grade D
Grade F
Write a Python script called HWpTaskUCusername.py that will read in the Student Index
Number and the data from the Grades.txt file. Your script should then calculate the Grade
Percentage and determine the Letter grade based on the percentage for each student. The Student
Index Number, their grade percentage and letter grade should be stored to a new file
LetterGradetxt for all students. A sample output for the first three students is shown below.
Note: it is not necessary for your columns to be nicely aligned. If you want to align columns,
you can control the width of each column in your write command as follows: : will make
item in the format list take up spaces. Similarly, :f will make item in the format
list take up spaces with two places behind the decimal point.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started