Due Date Tuesday, February 24, 2004
Nested if structures are and important tool in any programming language. Fly-By-Night Airways is an airline that flies to only 3 destinations Aruba, Jamaica, and Belize. They have 2 rates one for off season and one for high season. The rates per person are shown in the table below. Write a method calculateFare (int numPersons) using nested if statements to do the calculations. Do not use compound if statements, the purpose of this exercise is to become more familiar with nested ifs. You do not have to write the entire program only the method that calculates the fare.
Submission Method: Hard copy, you may either type out the method, or print the entire program. Either way, this is homework and you will NOT be given time in class to print this assignment.
| Destination | Off Season | High Season |
| Aruba | $699 | $849 |
| Jamaica | $459 | $609 |
| Belize | $523 | $673 |
Your method should begin with the following line:
public static double calculateFare (int numPersons){