SPARRRRTAAAAAAAAAAAA LMFAO......SORRY......... but I did it, it works for every value I put in.
//******************************************************************************
// PP 2.9.java Author: Rain_Maker
//
// This application will take the input value of secs. And display the results
// in hrs, minutes and secs.
//*****************************************************************************
package pp2.pkg9;
import java.util.*;
public class Pp29
{
public static void main(String[] args)
{
double hours,minutes,seconds,a,b;
Scanner scan = new Scanner(System.in);
System.out.print(" How many secs did you travel? ");
seconds = scan.nextDouble();
hours = seconds/3600; //This is supposed to show hrs
a = seconds%3600;
minutes = a/60;
b = seconds % 60;
//this displays hrs
System.out.println( " The amount hours : " + (int) hours + " hrs");
//this display minutes
System.out.println( " The amount mintues: " + (int) minutes + " mins" );
//this display seconds
System.out.println( " The amount secs: " + (int) b + " secs" );
}
}
Thanks again Norm and billyjthorton! Now is time to do another project, this is addictive. lol