ructions Tutoring Problem program.py > If it is not currently raining, your method of transport should be Type your answer to "Method of transportation" her determined by the distance you need to travel. If the distance is greater than 10km, you should take the bus. If it is between 2km and 10km (inclusive), you should ride your bike, and if it less than 2km, you should walk. The distance should always be a whole number. Your program should only ask for the distance if it is relevant to the answer. That is, if it is raining, it shouldn't ask you how far you need to travel. Is it currently raiñing? Yes You should take the bus. Is it currently raining? No How far in km do you need to travel? 8 You should ride your bike. Submissions <> Output HAutosaved Is it currently raining? No How far in km do you need to travel? 1 You should walk. V #5 Not yet! Failed a test (1 test passed). Testing the first example in the question. X Testing the second example in the question. Your submiss The answers provided will always be Yes, No or a whole number for program output:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
< >
A groklearning.com
omance Novels | Page 9| Nov.
A How to Use a Microscope - Wis.
D GOT the beat 'Step Back' M co.
G Grok | 3 - Making decisions
O Learning Strea
ok
Introduction to Programming (Python)
cademy
3- Making decisions
Method of transportation
Instructions Tutoring
O Problem
program.py >
If it is not currently raining, your method of transport should be
determined by the distance you need to travel. If the distance is
Type your answer to "Method of transportation" here.
greater than 10km, you should take the bus. If it is between 2km
and 10km (inclusive), you should ride your bike, and if it less than
2km, you should walk. The distance should always be a whole
number.
Your program should only ask for the distance if it is relevant to the
ansjwer. That is, if jt is raining, it shouldn't ask you how far you need
to travel.
Is it currently raiñing? Yes
You should take the bus.
Is it currently raining? No
How far in km do you need to travel? 8
You should ride your bike.
O Submissions
<> Output
HAutosaved
Is it currently raining? No
How far in km do you need to travel? 1
You should walk.
V #5 Not yet! Failed a test (1 test passed).
v Testing the first example in the question.
X Testing the second example in the question. Your submission did not
The answers provided will always be Yes, No or a whole number for
program output:
distances.
when it was meant to output:
O Hint
Not quite sure of the logic behind this question? Take a look at
this flowchart.
It seems correct, except for the missing or extra punctuation.
...
> #4 Not vet! Failed a test
MacBook PrO
DII
DD
F10
F7
FB
F5
F6
esc
F3
F2
%
&
@
3
4
6.
7
8
1
To lw
Q
W
E
o-0 0 0
Transcribed Image Text:< > A groklearning.com omance Novels | Page 9| Nov. A How to Use a Microscope - Wis. D GOT the beat 'Step Back' M co. G Grok | 3 - Making decisions O Learning Strea ok Introduction to Programming (Python) cademy 3- Making decisions Method of transportation Instructions Tutoring O Problem program.py > If it is not currently raining, your method of transport should be determined by the distance you need to travel. If the distance is Type your answer to "Method of transportation" here. greater than 10km, you should take the bus. If it is between 2km and 10km (inclusive), you should ride your bike, and if it less than 2km, you should walk. The distance should always be a whole number. Your program should only ask for the distance if it is relevant to the ansjwer. That is, if jt is raining, it shouldn't ask you how far you need to travel. Is it currently raiñing? Yes You should take the bus. Is it currently raining? No How far in km do you need to travel? 8 You should ride your bike. O Submissions <> Output HAutosaved Is it currently raining? No How far in km do you need to travel? 1 You should walk. V #5 Not yet! Failed a test (1 test passed). v Testing the first example in the question. X Testing the second example in the question. Your submission did not The answers provided will always be Yes, No or a whole number for program output: distances. when it was meant to output: O Hint Not quite sure of the logic behind this question? Take a look at this flowchart. It seems correct, except for the missing or extra punctuation. ... > #4 Not vet! Failed a test MacBook PrO DII DD F10 F7 FB F5 F6 esc F3 F2 % & @ 3 4 6. 7 8 1 To lw Q W E o-0 0 0
Expert Solution
Step 1

I give the code in Python along with code and output screenshots

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education