DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Ger Guest

    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

  2. #2
    Paul Clapham Guest

    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




  3. #3
    Ger Guest

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links