Answer in Java:
1) Utilize 1D and 2D arrays to store data.
2) Iterate through arrays to process data.
This program should utilize only the following topics: Variables, Assignment, Input/Output, Selection Structures, Repetition Structures, Methods, Classes and Objects, and Arrays.
CSE 1321L Version 5.0 Program 2 - Flight Price Matrix:
You have been hired by Beta Airlines to help them with their flight prices. You are to create a 10 x 10 2D array (also called a matrix) that holds the prices of their domestic flights between Atlanta and Hawaii. Your program should fill the matrix with random values between $99 and $1999 and allow a user to enter a price that matches their preferred cost for the flight. You should then process the 2D array and return whether or not a price in the array matches their requested price (exactly matches). Again, you should strongly consider printing out the array for debugging.
Sample Output:
Please enter your desired flight price: 450
No flight was found for that price, please try a new price.
Please enter your desired flight price: 347
A flight was found for that price, have a safe trip!