Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SOUVEPEC This activity is worth 10 total points This lesson's Group Activities are (do both; 1. Brutus the labrador retriever loves to chase tennis balls

image text in transcribed
SOUVEPEC This activity is worth 10 total points This lesson's Group Activities are (do both; 1. Brutus the labrador retriever loves to chase tennis balls all day long. You can calculate how far he has run using this formula: distance - speed time As an example, Brutus ran for two hours and ran 15 kilometers per hour. So, 5 kph) 12 hours) - 30 kilometers. Write a program that Brutus's owner can use to track his distance. It should: Allow Brutus's owner to input the speed of his dog Allow Brutus's owner to input the hours Brutus was playing fetch Loop to display the distance Brutus ran for each hour like this: How long did Brutus play fetch? 3 How tast did Brutus run? 12 Hour Brutus's Distance 112 km 2 24 km 3:36 km Helpful Hint: you've already ready about escape sequences in Lesson 1, but it is useful to really see them in practice. You can make your outputs prettier and more precise by using tabs to seperate your text. To add a tab to a string in Python, you use what's called an escape sequence to represent the tab: 1t. An escope sequence tells the program not to literally print le but to treat it as a tob. To create the the output header for Brutus, you would type something like this: print (Hour trutus Distance 2. Write a program that uses nested loops to draw this pattern

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

2. What additional techniques might be used to assess talent?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago

Question

=+6. What does the invisible hand of the marketplace do?

Answered: 1 week ago