To illustrate, here's a sample calculation of the TOTAL PERCENT SCORE for a hypothetical student:
Exam, Query and Homework Data for Jane Doe

Exam Scores      Exam 1    83 (out of 100)
                            Exam 2    68 (out of 100)
                            Exam 3    79 (out of 100)

                            FINAL    84 (out of 100)

Query Total        15 (out of 25)

Homework Total        66.5 (out of 75)


 
Calculation of TOTAL PERCENT SCORE  for Jane Doe

Her Final Exam score (84) is better than her Exam 2 score (68), so we replace the 68 with 84.

So Jane has earned  83 + 84 + 79 + 84 + 15 + 66.5 =  411.5 points out of a possible 500.

           Jane Doe's TOTAL PERCENT SCORE = (411.5/500) X 100 = 82.3

So what is her letter grade for the course?  I will not determine how 82.3 translates into a letter grade until after the final.  So don't bother asking.  (But the information below gives some guidelines to help Jane think about letter grades.)