Question: We need a program to calculate fuel cost for 2 hours of flight of a fighter jet flying at a specific speed. Use the

We need a program to calculate fuel cost for 2 hours of flight of a fighter jet flying at a specific speed. Use the following cases to calculate the cost of flying once a user enters the choice of speed. Include a looping method so that the user can run different cases. Your program should exit the loop at the request of the user. Since there are three cases, include a "switch" structure. Cases: 1. Subsonic speed ( < Mach 1) cost = 2.5/3.2 2. Supersonic speed (1 < Mach 10) cost = 5e2 Where V is the speed in Mach, e.g. V = 1.75 Mach, etc.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
