Question
How do I turn this into a code I am super stuck please help!!!! ********************************************************************** DELTA TAU ESCAPE SIMULATION ********************************************************************** Enter the current altitude of
How do I turn this into a code I am super stuck please help!!!!
**********************************************************************
DELTA TAU ESCAPE SIMULATION
**********************************************************************
Enter the current altitude of the ship: 10000
Enter the current fuel supply of the ship: 100
Enter the strength of the enemy tractor beam: 100
Simulation:
*************** Computer Report on Ship Status ***********************
The Enterprise has gone into orbit around Delta Tau at an altitude of 10000 Km. It has a fuel supply of 100 Kg. of fuel. It has been attacked by a tractor beam of strength 100 Km/min/min.
At this altitude, 95.0 Kg. of fuel are required to escape. There is sufficient fuel to escape.
Recommendation: Start the engines and escape at once!
**********************************************************************
Do you want to run another simulation? y
Enter the current altitude of the ship: 10000 Enter the current fuel supply of the ship: 75 Enter the strength of the enemy tractor beam: 100
Simulation:
*************** Computer Report on Ship Status ***********************
The Enterprise has gone into orbit around Delta Tau at an altitude of 10000 Km. It has a fuel supply of 75 Kg. of fuel. It has been attacked by a tractor beam of strength 100 Km/min/min.
At this altitude, 95.0 Kg. of fuel are required to escape. There is insufficient fuel to escape.
Recommendation: Tell Scotty to start shoveling! Report of what to expect:
TIME ALTITUDE FUEL AVAILABLE FUEL REQUIRED
--------------------------------------------------------------------------------------------------
1 min 9900 KM 85 KG 95.1 KG
2 min 9500 KM 95 KG 95.2 KG
3 min 8600 KM 105 KG 95.7 KG
In 3 minutes there will be sufficient fuel to escape. Recommend starting the engines at that time
**********************************************************************
Do you want to run another simulation? y
Enter the current altitude of the ship: 10000 Enter the current fuel supply of the ship: 25 Enter the strength of the enemy tractor beam: 100
Simulation:
*************** Computer Report on Ship Status ***********************
The Enterprise has gone into orbit around Delta Tau at an altitude of 10000 Km. It has a fuel supply of 25 Kg. of fuel. It has been attacked by a tractor beam of strength 100 Km/min/min.
At this altitude, 95.0 Kg. of fuel are required to escape.
There is insufficient fuel to escape.
Recommendation: Tell Scotty to start shoveling!
Report of what to expect:
TIME ALTITUDE FUEL AVAILABLE FUEL REQUIRED
--------------------------------------------------------------------------------------------
1 min 9900 KM 35 KG 95.1 KG 2 min 9500 KM 45 KG 95.2 KG 3 min 8600 KM 55 KG 95.7 KG 4 min 7000 KM 65 KG 96.5 KG 5 min 4500 KM 75 KG 97.8 KG 6 min 900 KM 85 KG 99.6 KG 7 min 0 KM 95 KG 100.0 KG
In 7 minutes the ship will crash! Recommend sending a goodbye message to Star Fleet!
**********************************************************************
Do you want to run another simulation? n Goodbye and Good Luck at Delta Tau!
**********************************************************************
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started