Question: Write Phython code for : follow Sample Run 1 How much do you weigh ( pounds ) ? 1 4 0 How far away is

Write Phython code for :
follow Sample Run 1
How much do you weigh (pounds)?140
How far away is your professor (meters)?30
Will you throw a rotten (t) omato, banana cream (p) ie,(r)ock,
(1) ight saber, or lawn (g) nome? t
Nice throw! You're going to get an F!
Velocity of skater: 0.019ms
My grandmother skates faster than you!
Sample Run 2
How much do you weigh (pounds)?100
How far away is your professor (meters)?50
Will you throw a rotten (t)omato, banana cream (p) ie,(r) ock,
(1) ight saber, or lawn (g) nome? g
Nice throw! RIP professor.
Velocity of skater: 1.829ms
Look out for that railing!!!
0 mass 0.1- "You're going to get an F!"
0 mass >0.1 and =1.0- "Make sure your professor is OK."
mass >1.0:
if the distance thrown is less than 20 meters - "How far away is the hospital?"
if the distance is greater than or equal to 20 meters - "RIP professor."
After displaying the velocity of the skater, possibly display a comment based on the velocity:
velocity 0.2-"My grandmother skates faster than you!"
velocity 0.2 and 1.0-Don't display a comment
velocity 1.0- "Look out for that railing!!!"
distance
gure out the velocity of the object in the horizontal direction of t lake the problem easier the skater will always throw the object then the horizontal velocity of the object will be:
velocityObject =gravity**distance22
resulting velocity of the skater in the opposite direction, we Momentum. That is, the (mass * velocity) of the object is eq skater in the opposite direction. The resulting equation is:
velocitySkater =massObject**velocityObjectmassSkater
rite a program simulating the above problem.
the distance (in meters) between the skater and the prc
a character representing the object the skater chooses to of skater - the weight (in pounds) of the skater
ment based on weight of the object and the distance of the
 Write Phython code for : follow Sample Run 1 How much

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!