Question
Python Coding Question: Reluctant toddler. A three-year-old has been instructed to go to bed, but he's really not on board. En route to his bedroom,
Python Coding Question: Reluctant toddler. A three-year-old has been instructed to go to bed, but he's really not on board. En route to his bedroom, every second he travels only 90% as far as he traveled in the previous second. Write a program that asks the user how many feet the child traveled during the first second (in other words, his initial speed), then reports a) how far he traveled in total after 30 seconds, and b) his speed (in feet per second) during that last second.
As a check, a toddler who starts at 5 ft/s will have traveled about 47.88 ft in 30 seconds; in the last second his speed will be about 0.212 ft/s.
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