Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
Write a program that accepts a number of minutes and converts it both to hoursand days. For example, 6000 minutes equals 100 hours and equals 4.167 days. Savethe class as MinutesConversion.java.This i
Write a program that accepts a number of minutes and converts it both to hoursand days. For example, 6000 minutes equals 100 hours and equals 4.167 days. Savethe class as MinutesConversion.java.
This is what I have so far but I am now stuck because it is running fine but when i input the number of minutes is coming adding up as seconds.
import java.util.Scanner;public class MinuteConversion {
@SuppressWarnings("resource") public static void main(String[] args) { System.out.println("Enter the Minutes: "); int inputMinutes = keyboard.nextInt(); int days = inputMinutes/(60*60*24); int hours = inputMinutes/(60*60)%24; int minutes = inputMinutes/ 60%60; int seconds = inputMinutes %60; System.out.println("The amount of time is: "); System.out.println(days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds ");