Answer:
This solution is implemented in Java
public static void timme(int seconds) {
int hours = seconds/3600;
System.out.println("Hours: "+hours);
int minutes = seconds/60;
System.out.println("Minutes: "+minutes);
System.out.println("Seconds: "+seconds);
}
Step-by-step explanation:
This method defines the method along with one parameter
public static void timme(int seconds) {
This calculates hours from the seconds
int hours = seconds/3600;
This prints the calculated hours
System.out.println("Hours: "+hours);
This calculates the seconds remaining
This calculates the minutes from the seconds left
int minutes = seconds/60;
This prints the calculated minutes
System.out.println("Minutes: "+minutes);
This calculates the seconds remaining
This prints the seconds left
System.out.println("Seconds: "+seconds);
}