If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help With a Java Assignment

I am totally new to java but I need to write a Java program that will allow
the user to input the departure time of a flight in minutes and hours, and
also input the duration time of the flight in hours and minutes. The program
should then determine the arrival time in hours in minutes. And be able to
check the program for a variety of times for example a flight that leaves
an Airport at 13.00 and lasts 1 hour will arrive at 14.00 hours which is
not really proof that the program will work! The program should work for
ALL TIMES on the 24-hour clock,

Re: Help With a Java Assignment

Okay, what help do you need?

"Ger" <gerferris33@hotmail.com> wrote in message
news:3bf444c3@147.208.176.211...
>
> I am totally new to java but I need to write a Java program that will
allow
> the user to input the departure time of a flight in minutes and hours, and
> also input the duration time of the flight in hours and minutes. The
program
> should then determine the arrival time in hours in minutes. And be able to
> check the program for a variety of times for example a flight that leaves
> an Airport at 13.00 and lasts 1 hour will arrive at 14.00 hours which is
> not really proof that the program will work! The program should work for
> ALL TIMES on the 24-hour clock,
>
> Would really appreciate any help with this code
>
>
> Ger

Re: Help With a Java Assignment

I am really quite new to this, I need coding for a nested if statement to
solve this problem, at least that is how i imagine it should be solved, I
would greately appreciate any advice as to whether using a nesteded if statement
is appropriate, you might be able to pint me in the right direction with
regard to the nesting code? I need to use an input and output box as well,
this is not a problem, Its the calculation I am having difficulty with.
Would greately appreciate any help you might be able to give me.