Name: Anonymous 2009-02-04 19:07
I need basic help to try to display the final line. i have tried
System.out.print("The airplane can fly for " + flightMinutes + " minutes");
but it displays only in minutes (ex. 96min). i need it to display it as: 1 hour(s) and 36 minute(s)
Enter the number of pounds of fuel onboard: 45
Enter the number of pounds of fuel added: 180
Enter the number of pounds of fuel needed for takeoff: 20
Enter the number of pounds of fuel needed for landing: 12
Enter the number of pounds of fuel burned per minute: 2
The airplane can fly for 1 hour(s) and 36 minute(s)
System.out.print("The airplane can fly for " + flightMinutes + " minutes");
but it displays only in minutes (ex. 96min). i need it to display it as: 1 hour(s) and 36 minute(s)
Enter the number of pounds of fuel onboard: 45
Enter the number of pounds of fuel added: 180
Enter the number of pounds of fuel needed for takeoff: 20
Enter the number of pounds of fuel needed for landing: 12
Enter the number of pounds of fuel burned per minute: 2
The airplane can fly for 1 hour(s) and 36 minute(s)