This equation is intended to be used as a vCalc equation-in-equation (EiE) to performs a cell look-up in the data set: Student Grades Example. You should be able to select an example student name, associated with either letter or numeric grade, and this equation will return data from the table in several forms.
To access various information from the Student Grades Example data set, you select these inputs:
First you select a student to view that student's grade information. There are three students to choose from in the Student Grades Example data set, so this is an example of a small class.
Next you select the Data Choice of whether to use letter grades or numeric grades for the chosen student. In most real-world cases, the data set would store one or the other but we used this example equation to show how to manage both the textual letter grade (in a switch statement) and the numeric grades.
Last you choose what kind of output you want to see for the chosen student. We use Groovy methods in this case to form some of the possible data, this proving an example of Groovy method signatures.
As in all tokens in vCalc (constants, calculators, equations and data sets), you can easily duplicate this equation or the accompanying data set if you are a registered user. All you have to do is mouse-over the token's name in the vCalc taxonomy and select duplicate from the menu that appears. You will then have your own copy of this equation to play with.
No comments |