ill do the exact ones for this problem,
7925 divided by 3600 resulting in 2, then 725 divided by 60 resulting in 12, and then the remaining 5 seconds. Sorry if I'm not really good with this ha
Type: Posts; User: bohrstein7
ill do the exact ones for this problem,
7925 divided by 3600 resulting in 2, then 725 divided by 60 resulting in 12, and then the remaining 5 seconds. Sorry if I'm not really good with this ha
the seconds divided by 3600, the remaining number divided by 60, then the rest was the 5 seconds.
2 hours, 12 minutes, 5 seconds?
seconds = milliseconds/1000
hours = seconds/3600
well the original project was for my class and was to make 10000123 milliseconds into hours minutes and so on. I wanted to make it able to have user input though. For that (^) number of milliseconds...
import java.util.Scanner;
public class TestLab100
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
int milisec, sec, hour, minute, remainderMi,...
--------------------Configuration: <Default>--------------------
Starting milli-seconds: 10000123
Hours: 2
Minutes: 46
Seconds: 668
Milli...
I'm a novice programmer and I am trying to solve this annoying problem with my code.
import java.util.Scanner;
public class TestLab100
{
public static void main(String[] args)
{
Scanner...