How would I convert this into code using an if statement?

Posted on 16th Feb 2014 by admin

ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not going to post my code unless it is necessary. I want to know how to get this into code form using if statements, and also how to echo it.

ES > or equal to m + 1.5s (This will tell what grades are an A)
m + .5s <or equal to ES < m + 1.5s (This will tell what grades are an B)
m - .5s < or equal to ES < m + .5s (This will tell what grades are an C)
m - 1.5s < or equal to ES < m - .5s (This will tell what grades are an D)
ES , m - 1.5s (This will tell what grades are an F)

Other forums