-
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,
Would really appreciate any help with this code
Ger
-
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.
Regards
Ger
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks