Gold Function
Suppose we compute “weight in Au”
Worth = (Weight*12)*368.4
function worthau ( weight )
{
// Compute the dollar value
//
of weight at $368.40/troy oz
return weight * 12 * 368.4;
}