Question: You are going to make a Flight-Runway Simulator. At program start, you will have Five (5) Airplanes in the sky. Each will have 100

You are going to make a Flight-Runway Simulator. At program start, you

 will have Five (5) Airplanes in the sky. Each will have 100Gallons of Fuel remaining. You will ask the user, if a plane

You are going to make a Flight-Runway Simulator. At program start, you will have Five (5) Airplanes in the sky. Each will have 100 Gallons of Fuel remaining. You will ask the user, if a plane should be landed or the fuel reduced (mimicking the flight burning fuel). For instance, when your program runs, it should show: There are 5 planes in the Sky. a. Land the Plane b. Reduce Fuel c. Quit Program Enter your Choice:__ (Let's say the user enters a) Enter your Choice: a Now the menu should show all planes in the sky with their fuel level. Plane 1- Fuel Level: 100 Gallons Plane 2- Fuel Level: 100 Gallons Plane 3 - Fuel Level: 100 Gallons Plane 4 - Fuel Level: 100 Gallons Plane 5 - Fuel Level: 100 Gallons Which Plane Should Land: (Let's say the user enters 3) Which Plane Should Land: 3 Plane 3 has landed. There are 4 planes in the Sky. a. Land the Plane b. Reduce Fuel c. Quit Program Enter your Choice:__ (Let's say the user enters b now) Enter your Choice: b Now the menu should show all planes in the sky with their fuel level. Plane 1- Fuel Level: 100 Gallons Plane 2- Fuel Level: 100 Gallons Plane 4 - Fuel Level: 100 Gallons Plane 5 - Fuel Level: 100 Gallons How many Planes Should have their Fuel Level Reduced:_ (Let's say the user enters 2) How many Planes Should have their Fuel Level Reduced: 2 You randomly select any two planes, and reduce their fuel by 15 Gallons. For instance: Plane 2 Fuel Level reduced by 15 Gallons. Plane 5 Fuel Level reduced by 15 Gallons. There are 4 planes in the Sky. a. Land the Plane b. Reduce Fuel c. Quit Program Enter your Choice:__ (Let's say the user enters a now) Enter your Choice: a Now the menu should show all planes in the sky with their fuel level. Plane 1- Fuel Level: 100 Gallons Plane 2- Fuel Level: 85 Gallons Plane 4 - Fuel Level: 100 Gallons Plane 5 - Fuel Level: 85 Gallons Which Plane Should Land:_ (Let's say the user enters 2) Which Plane Should Land: 2 Plane 2 has landed. There are 3 planes in the Sky. a. Land the Plane b. Reduce Fuel c. Quit Program Enter your Choice:__ And so on... Log all inputs from the user, and all messages shown to the user in a .txt file called FlightSimulator. Note: You have to keep track of the variables, etc. (I am not telling you. Figure out how and which variables to keep yourself), and give appropriate messages. WRITE functions ! All code in the main is NOT acceptable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solutions Step 1 To create a FlightRunway Simulator in Java you can follow the structure outlined be... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!