Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am confused about part 1 calculating the knights velocity. I have included the prompt and all of the relevant data needed to do it,
I am confused about part 1 calculating the knights velocity. I have included the prompt and all of the relevant data needed to do it, but I am still confused.
He wants us to use the formula provided in the prompt but written into code, so something like v = ve*ln(m0mf)
with
ve = 10,000 m/s
m0 = 200,000 kg
mf = 100,000 kg
Lab 1 Part 1: Calculate the velocity First, we will use Equation 1 to calculate the velocity of the Knight given an amount of fuel. 1. If the Knight is carrying x kgs of fuel, what is its total weight? 2. Create a variable fuel to represent the fuel mass and assign it some value in the range 0 to 100,000. 3. Using Equation 1, the variable fuel, and the above information, calculate the final velocity of the Knight. You will need to import the math package. The function math.log(x) calculates Inx (the natural logarithm of x). Assign the velocity to a variable v. a to import the math package, add the statement bellow to the first line of your code: import math b to call the log function: math.log(equation_here) 4. Print v using the print function. Run your program. It should print the velocity resulting from the amount of fuel you chose.
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