subject
Engineering, 25.02.2020 22:54 emmamood

Your program should do the following: 1. Interactively request and read in the initial altitude (in Km) and fuel supply (in Kg) of the Enterprise as well as the strength of the Deltoid's tractor beam (in Km/min/min). Your program must allow someone entering these data items to do so repeatedly, allowing for multiple simulations. Do this by asking the user to enter a 'y' or 'n' before each simulation, indicating whether or not a new simulation should be run at that time. 2. Compute the amount of fuel required to escape from that altitude. The amount required can be calculated using this formula: fuel_required = (1 - altitude / 200000) * beam_strength 3. If there is sufficient fuel available, recommend escaping at once. 4. If there is insufficient fuel available, advise Captain Kirk to turn off the engines and have Scotty start shoveling. If we don't turn off the engines, Scotty might get toasted when he opens the fuel door. 5. Your program should then display a minute-by-minute status report on the Enterprise's condition. This report should continue until the Enterprise has enough fuel to escape the planet, or the ship crashes. 6. Based on the results of your report, tell the Captain how long he should wait before starting the engines, or how long before the ship will crash.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
question
Engineering, 04.07.2019 19:10
What are the major differences between injection molding and extrusion?
Answers: 2
question
Engineering, 04.07.2019 19:10
An external consultant recommends that a plant installs a bank of capacitors for power factor correction. this will reduce the peak electrical demand charges by an average of 93 kw every month. the plant current pays $13 per kw in peak demand charges. the capacitor bank will include 223 kw of fixed capacitors, and 183 of variable capacitors. the fixed capacitors cost $59 per kw, and the variable capacitors will cost $65 per kw. the consultant charges 21% of the equipment costs to install the capacitors. because this project will reduce the demand for the electric utility, they are prepared to provide a one-time rebate of $42 per kw of reduced demand. what is the simple payback period for this project (in years)?
Answers: 2
question
Engineering, 06.07.2019 03:20
An air-conditioning system consists of a heating section and an evaporative cooler. air enters the heating section at 10°c and 70 percent relative humidity at a rate of 30m^3/min, and it leaves the evaporative cooler at 20°c and 60 percent relatively humidity. if the air conditioning system operates at a total pressure of 98 kpa, determine (a) the temperature and relative humidity of the air when it leaves the heating section, (b) the rate of heat transfer in the heating section, and (c) the rate of water added to air in the evaporative cooler
Answers: 2
You know the right answer?
Your program should do the following: 1. Interactively request and read in the initial altitude (in...
Questions
question
English, 27.02.2020 16:53