program  
Author Message
mehak gupta via JavaKB.com





PostPosted: 2005-2-1 23:55:00 Top

java-programmer, program 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.

--
Message posted via http://www.javakb.com
 
Thomas Weidenfeller





PostPosted: 2005-2-2 0:00:00 Top

java-programmer >> program 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.

We don't do homework here.

/Thomas

--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
 
Tim Ward





PostPosted: 2005-2-2 0:15:00 Top

java-programmer >> program "Thomas Weidenfeller" <email***@***.com> wrote in message
news:cto8pa$7kv$email***@***.com...
>
> We don't do homework here.

Oh, look, why not? Tell you what, I'll do it for USD250. In advance, please.


 
 
Collin VanDyck





PostPosted: 2005-2-2 0:26:00 Top

java-programmer >> program 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.
>

Yes, sir, I'll get right on that!

Shall I keep you updated with my progress or would you like for me to
just deliver the source code to you upon completion?

 
 
Ann





PostPosted: 2005-2-2 3:09:00 Top

java-programmer >> program
"Collin VanDyck" <email***@***.com> wrote in message
news:O4OLd.759687$email***@***.com...
> 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.
> >
>
> Yes, sir, I'll get right on that!
>
> Shall I keep you updated with my progress or would you like for me to
> just deliver the source code to you upon completion?

First you have to write a test that fails. ;-)


 
 
anonymous





PostPosted: 2005-2-2 3:31:00 Top

java-programmer >> program 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?
 
 
Mr Moiz Rassiwala





PostPosted: 2005-2-2 8:55:00 Top

java-programmer >> program >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?
>
you are right! mehak if u cant write this program then quit programming.
samaj mein aya kuch??


 
 
Phil Staite





PostPosted: 2005-2-2 11:35:00 Top

java-programmer >> program
Hmm, no timezone information? Seems to be an ill-formed problem
statement to me.

Also, will the user be entering the times in 12 hr (am/pm) format or 24
hr clock format?

What's the definition of "departure time" and "arrival time" ???
Nowadays airlines strive for "on time departures" so they tend to claim
departure from about the moment the flight attendant closes the cabin
door. Similarly, to make their on-time arrivals, they basically claim
to have arrived the moment the wheels touch the runway. Neither takes
into account the (usually significant) taxi and wait times... With so
little information in the problem statement, I'm affraid no useful
estimate of actual flight time can be made... Turn in a "hello world"
homework program instead...
 
 
huy





PostPosted: 2005-2-2 11:50:00 Top

java-programmer >> program 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.
>

Here's a tip:


/**
* 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.
*/

public class Assignment {
public Assignment() {
}

public void doAssignment() {
}

public void main(String[] argv) {
Assignment a = new Assignment();
a.doAssignment();
}
}
 
 
Thomas Weidenfeller





PostPosted: 2005-2-2 16:14:00 Top

java-programmer >> program anonymous wrote:
> 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?

Robing banks and not getting caught requires some functional neurons.

/Thomas

--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
 
 
David Segall





PostPosted: 2005-2-2 21:29:00 Top

java-programmer >> program anonymous <email***@***.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.
 
 
antonio.echalecu





PostPosted: 2005-4-25 18:26:00 Top

java-programmer >> program Hi, I'm looking for a free program that can convert 1 asp.net
application or asp.net class to a class diagram or graphic where I can
see methods and attributes. Does anyone know where can I find this?
Thank you very much.
 
 
TDAVISJR





PostPosted: 2005-4-25 18:52:00 Top

java-programmer >> program Free aye? Good luck finding one. Of course the only FREE one you can get
is writing your own.

--
TDAVISJR
aka - Tampa.NET Koder


"Ant" <email***@***.com> wrote in message
news:email***@***.com...
> Hi, I'm looking for a free program that can convert 1 asp.net
> application or asp.net class to a class diagram or graphic where I can
> see methods and attributes. Does anyone know where can I find this?
> Thank you very much.


 
 
Ken Cox [Microsoft MVP]





PostPosted: 2005-4-25 19:56:00 Top

java-programmer >> program Not free, but there's a 30-day trial version of this product:

http://www.visualuml.com/downloads.htm

"Ant" <email***@***.com> wrote in message
news:email***@***.com...
> Hi, I'm looking for a free program that can convert 1 asp.net
> application or asp.net class to a class diagram or graphic where I can
> see methods and attributes. Does anyone know where can I find this?
> Thank you very much.


 
 
antonio.echalecu





PostPosted: 2005-4-26 17:26:00 Top

java-programmer >> program Thank you very much Ken!!!

"Ken Cox [Microsoft MVP]" <email***@***.com> wrote in message news:<email***@***.com>...
> Not free, but there's a 30-day trial version of this product:
>
> http://www.visualuml.com/downloads.htm
>
> "Ant" <email***@***.com> wrote in message
> news:email***@***.com...
> > Hi, I'm looking for a free program that can convert 1 asp.net
> > application or asp.net class to a class diagram or graphic where I can
> > see methods and attributes. Does anyone know where can I find this?
> > Thank you very much.
 
 
jyo





PostPosted: 2008-1-19 20:11:00 Top

java-programmer >> program I am having a problem . I have 1 to 100 no and i want to print in word
format like one to hundred.

wht is the best way to implement this?

Can any one tell me this ASAP?


Jyo
 
 
Jeff Higgins





PostPosted: 2008-1-19 21:15:00 Top

java-programmer >> program
jyo wrote:
>I am having a problem . I have 1 to 100 no and i want to print in word
> format like one to hundred.
>
> wht is the best way to implement this?
>
> Can any one tell me this ASAP?
>
>

<http://www.google.com/search?hl=en&q=java+number+words>


 
 
Roedy Green





PostPosted: 2008-1-19 21:33:00 Top

java-programmer >> program On Sat, 19 Jan 2008 04:10:51 -0800 (PST), jyo <email***@***.com>
wrote, quoted or indirectly quoted someone who said :

>I am having a problem . I have 1 to 100 no and i want to print in word
>format like one to hundred.
>
>wht is the best way to implement this?
see http://mindprod.com/products1.html#INWORDS

I have done it in many different languages.
--
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com
 
 
Markus Tazl





PostPosted: 2008-1-19 22:44:00 Top

java-programmer >> program On 19 Jan., 13:10, jyo <email***@***.com> wrote:
> I am having a problem . I have 1 to 100 no and i want to print in word
> format like one to hundred.
>
> wht is the best way to implement this?
>
> Can any one tell me this ASAP?
>
> Jyo

Should be not that difficult. I remember haveing read something like
this in Sun's Java forum some time ago ... just a moment ...
searching ... found it :-). Try this URL :
http://forum.java.sun.com/thread.jspa?forumID=422&threadID=625527

best regards
Markus Tazl