Help With a Java Assignment


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help With a Java Assignment

  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

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center