Skip to main content

Edit Calculation - Trigger Extra Credit

Learn how to trigger extra credit points based on a activity grade

Updated over 7 months ago

Purpose

The purpose of this article is to demonstrate how to to trigger extra credit points based on a grade produced from an activity, such as a Quiz or Assignment

Note

This example shows how to award 1 point of extra credit for achieving a 70% or better on an extra credit quiz. The quiz value will be “0” in the grade book, but the results of its grade will “trigger” the extra credit points

Procedure

  1. In your Moodle Course, click on Grades and navigate to Gradebook Setup

Course page on display with "Grades" option highlighted.

Grader report drop down menu in display with the option of "Gradebook setup" highlighted.

2. At the top of the page, click on Add grade item

Gradebook setup section with "Add grade item" button highlighted.

3. On your newly created item, click on Edit and choose Edit calculation from the drop-down menu

4. Enter the desired name in the Item Name field.

5. Select Grade Category from the dropdown.

6. Click the check box next to the Extra Credit field.

7. Click on the Save changes button at the bottom of the page.

Grading system's ID numbers section highlighting an assignment's ID and the "Add ID numbers" button.

8. On your newly created item, click on Edit and choose Edit calculation from the drop-down menu.

Grading system menu with the "Edit" option selected, highlighting "Edit calculation" from the drop-down list.

9. Enter an ID Number for the assignment you want to assign the extra credit grade and click Add ID numbers. This can be letters, numbers, or a combination of both.

A grading system's ID numbers section, highlighting an assignment's ID and the "Add ID numbers" button.

10. Write your calculation. A breakdown of the calculation is shown below.

=if([[Q2]]>6,2,1)

A. The string for the calculation must start with either an =, +, or – sign.

B. “if” will start the “if, then” command line.

C. The Calculation must be closed within parenthesis.

D. The first variable of the equation within the parenthesis is the id number assigned to the name of your manually created assignment.

E. The next variable of the equation is the affecting variable that will change the first variable in the equation.

F. The next inputs must be separated by commas.

G. This next variable is what will be assigned if the first part of the equation is true.

For example: if the student gets a score of 7, the equation would be true and 1 point of extra credit would be assigned.

H. This variable is what will be assigned if the first part of the equation is false.

For example: if the student gets a score of 5, the equation would be false and 0 points of extra credit would be assigned.

11. Enter the Calculation in the Calculation text box.

An edit calculation page for extra credit points, showing a formula with an assignment ID and a "Save changes" button.

12. Click Save changes.

Please feel free to contact Moodle Support for assistance with the Edit Calculation feature.

Did this answer your question?