I am posting my homework assignment for some input. Up until now all of my assignments have been right but I do not know why. If my assignment is right let me know but I need someone to explain to me why it is right. PLEASE HELP!

I attached my assignment but I will copy it to.

input X input 95

if (0 <= X and X < 49) if (0 <= 95 and 95 < 49)

output "you fail" output “ you fail”

else if (50 <= X and X < 70) else if (50 <= 95 and x < 70)

output "your grade is" X output “95”

output "you did OK" output “you did ok”

else if (70 <= X and X < 85) else if (70 <= 95 and 95 < 85)

output "your grade is" X output “your grade is 95 “

output "you did well" output “you did well”

else if (85 <= X and X < 100) else if (85 <= 95 and 95 < 100

output "your grade is" X output “your grade is 95”

output "you did great" output “you did great”

endif endif

output "how did you do?" output “ how did you do?”