Illustration of "Script to computes how much points you need at your exam"

Ruby script

# cpt = global coursework mark, ccof = coef for coursework
def min_exam(cpt, ccof)
  return ((0.5 - (cpt * ccof)) * (1.0 / (1.0 - ccof))).round(2)
end
puts min_exam(0.7, 0.25)

Ruby script

# cpt = global coursework mark, ccof = coef for coursework
def min_exam(cpt, ccof)
  return ((0.5 - (cpt * ccof)) * (1.0 / (1.0 - ccof))).round(2)
end
puts min_exam(0.7, 0.25)