need a java coder for a quick project will take around 1 hr
$10-30 CAD
Completed
Posted about 4 years ago
$10-30 CAD
Paid on delivery
you are required to code Java classes and methods. Only a tester class and its expected console output are given to you. The tester class illustrates how instances of classes are supposed to be created, and how methods may be invoked on their instances. Don’t modify the tester! From this tester class, which does not compile to begin with, you are required to:
1. Identify the missing classes and methods (constructors, accessors, and mutators).
2. Create all missing classes, as well as add headers of all required methods (i.e., name, return type, input parameters, and return default values for accessors).
Completing the above two tasks should make everything compile.
3. Implement the required methods (with any extra attributes or helper methods which you consider necessary), such that executing the given tester produces the expected console output. System Requirements Percentages behind each paragraph signify the % of your grade determined by each part.
0) Code compiles (10%)
1) You need to develop a flight management system for an airline. Each flight is characterized by its flight number, origin airport, destination airport and distance. Airports are characterized by their three-letter airport code and country code. Airplanes have a type name, range in km and number of seats. Passengers have a name and integer passport number. (53.3%)
2) Each flight stores a list of passengers. (6.7%)
3) Passengers store a list of flights they are taking. When a passenger is added to a flight, this flight also needs to be added to the list of flights stored by the passenger. (3.3%)
4) Each flight has an airplane type. Before a plane is added, the method needs to check whether the plane’s range is sufficiently large for the flight distance. If successful, the method needs to return true. If unsuccessful, it needs to return false. (6.7%)
5) A method is needed to determine whether the flight is overbooked i.e. it checks whether there are more passengers on the flight than seats on the plane. If the number of passengers is larger than the number of seats, the method needs to return by how many passengers the flight is overbooked. If not, the method needs to return zero. (6.7%)
6) Flights can be domestic (i.e. origin and destination have the same country code) or international (i.e. origin and destination have different country codes). We need a boolean method that determines whether a flight is international or domestic. (6.7%)
7) The airline needs a list of any passengers on a particular flight who have not yet entered their passport numbers, which is signified by a passport number of 0 in the system. (3.3%)
8) Passengers receive frequent flyer points for every flight they take. 1 point for domestic flights, 3 points for international flights. Based on a passenger’s list of flights, the system needs to calculate their total number of points. (3.3%)
You are required to write, in valid Java syntax, classes, attributes, and methods to implement the above system requirements. Study the FlightTester class and its expected output carefully. It indicates the classes and headers of methods that you need to define. You are forbidden to define additional classes, whereas you are free to declare extra attributes or helper methods as you find necessary.
Yes, I can do it within 1-2 Hour
Hello, I'm an expert Java developer with experience in object-oriented, data structure, swing, JavaFX and more advanced. I can help you to finish this project with great quality.
We can negotiate on price/Budget Regards
Relevant Skills and Experience java.
$10 CAD in 1 day
4.9 (30 reviews)
4.8
4.8
3 freelancers are bidding on average $38 CAD for this job
hi there, i will build all the classes for running the flight tester class, will generate output same as sample output given, will do in 1-2 hours starting right now for 15$, thanks