JAVA ARRAY PROGRAMMING HELP
Airlines needs your help to create a program to determine bonus amounts for its pilots based on the number of miles traveled in the past year and the number of years each pilot has been flying. However, only pilots that have traveled more than the average number of miles traveled by all pilots are eligible to earn a bonus, regardless of the number of years they have been flying. For pilots that have traveled more than the average number of miles traveled by all pilots, bonuses are based on the following structure:
•Pilots who have not flown for at least two years do not earn a bonus
•Pilots who have flown for at least two years, but less than six years, earn a bonus of $515.00
•Pilots who have flown for at least six years, but less than nine years, earn a bonus of $1206.00
•Pilots who have flown for nine or more years earn a bonus of $2410.00Create a modular program that will prompt the user to input information for each pilot, up to 75 pilots, until they have indicated they are finished. If a 76thpilot is entered, the user must receive an error message, informing the user only 75 pilots may be entered. It is also important to note pilots are forced to retire after their 50thyear of employment. The program will then determine which pilots earn a bonus and the amount of the bonus. A report will be produced to include a list of each pilot’s name, number of years flown, and bonus amount ($0.00 will display if no bonus has been earned). The report will also include the average number of miles traveled by all pilots, the number of pilots earning a bonus, and the total bonus amounts earned across all pilots Other Requirements:
•Your solution must be designed as a modular solution using modules other than a mainline,with each module performing one task.
•Your solution must demonstrate the concept of arrays.
•Your solution may not ask for the number of pilots that will be entered.
•Your solution must not import any Java library other than JOptionPane, including java.util.Arrays
•Your solution must contain appropriate validation. Try to think about what might be considered appropriate as you are designing your solution beyond what has already been explicitly provided.
The post JAVA ARRAY PROGRAMMING HELP appeared first on ExpertCustomWritings.
Assignment status: Solved by our experts