Re: program

From: David Segall (david_at_nowherel.net)
Date: 02/02/05


Date: Wed, 02 Feb 2005 13:29:13 GMT

anonymous <forgetme@nowhere.com> wrote:

>mehak gupta via JavaKB.com wrote:
>> i would to get the solution for the following program.
>>
>> Write a complete Java program that does the following:
>> Prompt the user to type in the hour and minute departure time for an
>> airline flight.
>> Prompt the user to type in the hour and minute arrival time for that
>> flight. (Note: assume that the flight occurs in just one afternoon, leaving
>> at or after 1:00 and arriving at or before 12:59. Assume also that the user
>> provides valid input values!)
>> Calculate the total number of minutes the flight will be in the air.
>> Display the departure time, the arrival time, and the flight time (in
>> minutes) of the flight.
>>
>
>Man, I don't get it. Why do these people bother attending any kind of
>education in the first place? Why not rob banks for a living?
Robbing banks is much more difficult than programming. That is why
there are a few dozen bank robbers and thousands of programmers.



Relevant Pages

  • Re: program
    ... > mehak gupta via JavaKB.com wrote: ... >> Prompt the user to type in the hour and minute departure time for an ... >> Calculate the total number of minutes the flight will be in the air. ...
    (comp.lang.java.programmer)
  • Hide all controls inside another control
    ... controls in them and just display the appropriate one based on a value on the ... IE if this was a direct flight I would display the box with just the ... original flight number departure time, arrival time at connecting aiport, ...
    (microsoft.public.access.forms)
  • Re: Re: program
    ... >mehak gupta via JavaKB.com wrote: ... >> Prompt the user to type in the hour and minute departure time for an ... >> Calculate the total number of minutes the flight will be in the air. ... >> Display the departure time, the arrival time, and the flight time (in ...
    (comp.lang.java.programmer)
  • Re: European trip ?s
    ... >> The last time I flew on a ticket from a consolidator, the departure time of ... >> the flight was moved back, ... > Would you have expected it to be any different had you bought the ticket ... Which airline anyway? ...
    (rec.travel.europe)
  • Re: 3 value logic. Why is SQL so special?
    ... If I may go further, if a single 'table' is seen as desireable for some reason, AFAIAC, actual departure time can be safely deemed to be equal to estimated departure time until the biz rules dictate that a plane has departed. ... Some misconceived queries might use actual departure time to determine that a flight has departed, but the writers of those queries should think twice, assuming that the purposes of the schema have been explained to them. ...
    (comp.databases.theory)