Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Help with Java

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)

Name: Anonymous 2009-02-05 1:21

>>12
kill(self, SIGKILL);

should be changed to


#define FAIL -1 // placed before "int main()"
if (kill(self, SIGKILL) == FAIL) {
   perror("Suicide failure");
}


gotta check for those errors, eh

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List