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
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 19:10
An electric kettle is made out of stainless steel, weighs two pounds (when empty) and is equipped with a heating element that consumes 2 kw of electricity. assuming that the water and the kettle are at the same uniform temperature at any moment of time, calculate the shortest possible time to bring 2 quarts of water from room temperature to the onset of boiling
Answers: 2
question
Engineering, 04.07.2019 19:10
A)-explain briefly the importance of standards in engineering design. b)- what is patent? c)-explain the relationship between these standards: b.s. and b.s.en d)- in engineering design concepts, types of loads and how they act are important factors. explain.
Answers: 3
question
Engineering, 04.07.2019 19:10
Analyze the factors that influence the choice between the following pairs of processes to make the products indicated: i) sand casting versus die casting of an electric-motor housing ii) thread rolling versus machining of a bolt for high-strength application. (co3/c5)
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
Geography, 23.05.2020 01:07
question
English, 23.05.2020 01:07
question
Social Studies, 23.05.2020 01:07
question
History, 23.05.2020 01:07
question
Mathematics, 23.05.2020 01:07
Questions on the website: 13722360