I am at the end of my quarter and have two programs to write and need help. I dont even know where to begin. I have decided to change my major to something else, but I dont want to fail this class and hurt my GPA. I have a programming diploma but it is 13 years old and I was trying to get an associates, but I am to old for all that mess now and programming is so much differant than when I took it before. I changed my major to Paralegal because that is my next thing I am veery interested in, and am going to double major in it.
But I must finish this quarter. I am not able to get in touch with the instructor for help and he never goes to the school. I have complained to the supervisor with no help there. Now I am stuck either getting this done or failing the course. So here goes what I need:
to Create a class called Flight that represents a commercial flight. It should contain strings to represent the source city, destination city, and airline. It should also contain GregorianCalendar objects to represent departure and arrival times. Finally, it should implement the Comparable interface. Two flights should be considered equal if they have the same source and destination cities. If they are not equal, the comparison should be made based on the source cities alphabetically.
Make sure to write a toString() method to output the flight information. To output the strings, simply use their own toString() methods. The GregorianCalendar toString() method returns far more information that you will need to sure the getDate() method instead. This method returns a Date object that has a toString() method that is much nicer than GregorianCalendar’s.
I have 2 days to get this done and 1 more program repaired and another written. Like I said I cant get the teachers help and I am for some reason not comprehending these last 2chapters. But I am trying hard.