Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago