-->
当前位置:首页 > 题库

PROGRAMMING:The shortest runway length (higher education society, python programming foundation and application, exercise 3-12)

Luz5年前 (2021-05-10)题库476
Assuming that the acceleration of an aircraft is a and the take-off speed is V, the shortest runway length required for the aircraft to take off can be calculated by the following formula: l = V < sup > 2 < / sup > / (2a). Write a program to prompt the user to input the take-off speed V (M / s) and acceleration a (M / s < sup > 2 < / sup >), calculate the shortest runway length of the aircraft take-off, and reserve 2 decimal places when outputting. The calculation process should be encapsulated as a function, which takes parameters V and a and returns the calculated L.
###Input example:
Here is a set of inputs. For example:
```in
one hundred
five
```
###Output example:
The corresponding output is given here. For example:
```out
The shortest runway length is 1000.00
```
Note: all colons in this question are English colons.







answer:If there is no answer, please comment