This week we are looking at React useEffect and Custom Hooks

Create a single webpage for logging flights and determines if the user is a Bronze, Silver or Gold class member based on the distance flown in the flights they have taken. You are to take as input a flight number (Flight number text input) and the number of miles (flight miles' text input) flown in the flight that are to be submitted using a button.

Write a script that takes the two inputs and stores the two inputs in an array. Make sure that a sure cannot enter 2 flights that have the same flight number and present a message to the user if they do that.

The same web page should display the inputted flight information in a tabular format after the user adds the flight. Class of the passenger is based on the total miles flown.

Bronze member < 10000 miles flown.
Silver member < 25000 miles flown
Gold member > 25000 miles flown
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.