After looking at the help section for a bit it appears tat my logic is off (see below). Can someone help me understand why I should be looking for the remainder of t % 5 as opposed to the actual value of t? as I have below. Also, the problem verificaion states that i am not displaying text o the screen. can you tell me why?

package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
double t = Double.parseDouble(s); //similar to Integer.parseInt
if (t<=3.0 || t==5.0 )
System.out.println("green");
else if (t>3.0 && t<=4.0)
System.out.println("yellow");
else if (t>4. && t<5.0)
System.out.println("red");
}
}