Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Python, create a program that helps grade an exam. Exam scores are in sepa

ID: 3769613 • Letter: U

Question

Using Python, create a program that helps grade an exam. Exam scores are in separate files, so first check if the files exist, and if not keep asking for a valid file name. The program must:

Count the total number of students represented in the file

Count the tota number of invalid lines of data found in the file

Calculate grade for each student.

+4 points for every right answer

0 points for every skipped answer

-1 points for every incorrect answer

The highest score

The lowest score

The average score (mean)

Mode

Range

Explanation / Answer

order to open a file in Python, all you have to use is the open function. The following opens the file numbers.txt to read from:

grade = grade + float(weights[j])*int(allgrades[j]) print("Student #",i+1,": ","%.2f"%grade, sep="")

order to open a file in Python, all you have to use is the open function. The following opens the file numbers.txt to read from:

main():

# Store their grades.
allgrades = myFile.readline().split()

grade = grade + float(weights[j])*int(allgrades[j])

# Output the result.
outFile.write("Student #"+(str(i+1))+": "+"%.2f"%grade+" ")

main()

Along with the condition applied

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote