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:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
Condition monitoring is a major component of. (clo4) a)- predictive maintenance. b)-preventive maintenance c)-proactive maintenance d)-reactive maintenance.
Answers: 1
question
Engineering, 04.07.2019 18:20
Steam enters a converging nozzle at 3.0 mpa and 500°c with a at 1.8 mpa. for a nozzle exit area of 32 cm2, determine the exit velocity, mass flow rate, and exit mach number if the nozzle: negligible velocity, and it exits (a) is isentropic (b) has an efficiency of 94 percent
Answers: 2
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
You know the right answer?
Your program should do the following: 1. Interactively request and read in the initial altitude (in...
Questions
question
Health, 12.07.2019 12:30
question
Mathematics, 12.07.2019 12:30
Questions on the website: 13722360