Respuesta :

Answer:

This solution is implemented in Java

public static void timme(int seconds) {

       int hours = seconds/3600;

       System.out.println("Hours: "+hours);

[tex]seconds = seconds - hours * 3600;[/tex]

       int minutes = seconds/60;

       System.out.println("Minutes: "+minutes);

[tex]seconds = seconds - minutes * 60;[/tex]

       System.out.println("Seconds: "+seconds);

   }

   

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

    [tex]seconds = seconds - hours * 3600;[/tex]

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

    [tex]seconds = seconds - minutes * 60;[/tex]

This prints the seconds left    

  System.out.println("Seconds: "+seconds);

   }